Skip to content

Commit 3d77ff7

Browse files
estellesvgeesus
authored andcommitted
Remove font-variant descriptor example
Removed font-variant descriptor example. Changes from the March 15 2018 CSS Fonts 3 Candidate Recommendation ‘font-variant’ descriptor moved to CSS Fonts 4 due to lack of implementations And then… 17.5. Changes from the 20 September 2018 Working Draft Remove font-variant @font-face descriptor per WG resolution All references have been removed, other than this example.
1 parent c0dd898 commit 3d77ff7

1 file changed

Lines changed: 0 additions & 29 deletions

File tree

css-fonts-4/Overview.bs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6421,35 +6421,6 @@ Feature precedence examples</h3>
64216421
</pre>
64226422
</div>
64236423

6424-
<div class="example" id="ex-descriptor-only-that-rule">
6425-
When the <span>font-variant</span> descriptor
6426-
is used within an ''@font-face'' rule, it only
6427-
applies to the font defined by that rule.
6428-
6429-
<pre>
6430-
@font-face {
6431-
font-family: MainText;
6432-
src: url(http://example.com/font.woff);
6433-
font-variant: oldstyle-nums proportional-nums styleset(1,3);
6434-
}
6435-
6436-
body {
6437-
font-family: MainText, Helvetica;
6438-
}
6439-
6440-
table.prices td {
6441-
font-variant-numeric: tabular-nums;
6442-
}
6443-
</pre>
6444-
6445-
In this case, old-style numerals will be used throughout but only
6446-
where the font "MainText" is used. Just as in the previous example,
6447-
tabular values will be used in price tables since ''tabular-nums''
6448-
appears in a general style rule and its use is mutually exclusive with
6449-
''proportional-nums''. Stylistic alternate sets will only be used where
6450-
MainText is used.
6451-
</div>
6452-
64536424
<div class="example" id="ex-features-local">
64546425
The ''@font-face'' rule can also be used to access font features in locally available
64556426
fonts via the use of <code>local()</code> in the 'src!!descriptor' descriptor of the ''@font-face'' definition:

0 commit comments

Comments
 (0)