You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-fonts-4/Overview.bs
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -519,7 +519,7 @@ face exists and a different width is substituted:
519
519
User Agents must not sythesize stretched faces for font families which lack actual stretched faces.
520
520
521
521
<h3 id="font-style-prop">
522
-
Font style: the 'font-style' property</h3>
522
+
Font style: the 'font-style!!property' property</h3>
523
523
524
524
<pre class="propdef">
525
525
Name: font-style
@@ -533,7 +533,7 @@ Media: visual
533
533
Animatable: If both "from" and "to" values are "oblique", then yes, as an <<angle>>. Otherwise, no.
534
534
</pre>
535
535
536
-
The 'font-style' property allows
536
+
The 'font-style!!property' property allows
537
537
italic or oblique faces to be selected. Italic forms are generally cursive in nature while oblique faces are
538
538
typically sloped versions of the regular face. Oblique faces can be simulated by artificially sloping the
539
539
glyphs of the regular face. Compare the artificially sloped renderings of Palatino "a" and Baskerville "N"
@@ -2410,11 +2410,11 @@ if all font style properties were set to their initial value.
2410
2410
As you can see, because font B contains the minimum stretch value across the entire family, font B would be selected by this algorithm. However, if font B were somehow eliminated from the family, font A would then contain the lowest distance in the family, so it would be selected.
2411
2411
</div>
2412
2412
2413
-
2. <a href="#font-style-matching">'font-style' is tried next.</span>
2413
+
2. <a href="#font-style-matching">'font-style!!property' is tried next.</span>
2414
2414
If a font does not have any concept of varying strengths of italics or oblique angles, its style
2415
-
is mapped according to the description in the 'font-style' property definition.
2415
+
is mapped according to the description in the 'font-style!!property' property definition.
2416
2416
2417
-
If the value of 'font-style' is ''italic'':
2417
+
If the value of 'font-style!!property' is ''italic'':
2418
2418
2419
2419
1. If the matching set includes faces with italic values containing the mapped value of ''italic'',
2420
2420
faces, then faces with italic values which do not include the desired italic mapped value are removed from the matching set.
@@ -2435,7 +2435,7 @@ if all font style properties were set to their initial value.
2435
2435
As you can see, because font D contains the minimum italic value across the entire family, font D would be selected by this algorithm. However, if font D were somehow eliminated from the family, font E would then contain the lowest distance in the family, so it would be selected. If E were eliminated, C would be selected. If C were eliminated, font B would not be chosen immediately; instead, oblique values would be consulted and an oblique value might be chosen. However, if no oblique value is chosen, font B would then be selected, followed by font A.
2436
2436
</div>
2437
2437
2438
-
If the value of 'font-style' is ''oblique'' and the requested angle is greater than or equal to 20deg,
2438
+
If the value of 'font-style!!property' is ''oblique'' and the requested angle is greater than or equal to 20deg,
2439
2439
2440
2440
<ol id="greater-oblique-steps">
2441
2441
1. If the matching set includes faces with oblique values containing the value of ''oblique'',
@@ -2456,7 +2456,7 @@ if all font style properties were set to their initial value.
2456
2456
</div>
2457
2457
</ol>
2458
2458
2459
-
If the value of 'font-style' is ''oblique'' and the requested angle is greater than or equal to 0deg and less than 20deg,
2459
+
If the value of 'font-style!!property' is ''oblique'' and the requested angle is greater than or equal to 0deg and less than 20deg,
2460
2460
2461
2461
<ol id="lesser-oblique-steps">
2462
2462
1. If the matching set includes faces with oblique values containing the value of ''oblique'',
@@ -2480,9 +2480,9 @@ if all font style properties were set to their initial value.
2480
2480
</div>
2481
2481
</ol>
2482
2482
2483
-
If the value of 'font-style' is ''oblique'' and the requested angle is less than 0deg and greater than -20deg, follow the steps <a href="#lesser-oblique-steps">above</a>, except with the negated values and opposite directions. If the value of 'font-style' is ''oblique'' and the requested angle is less than or equal to -20deg, follow the steps <a href="#greater-oblique-steps">above</a>, except with the negated values and opposite directions.
2483
+
If the value of 'font-style!!property' is ''oblique'' and the requested angle is less than 0deg and greater than -20deg, follow the steps <a href="#lesser-oblique-steps">above</a>, except with the negated values and opposite directions. If the value of 'font-style!!property' is ''oblique'' and the requested angle is less than or equal to -20deg, follow the steps <a href="#greater-oblique-steps">above</a>, except with the negated values and opposite directions.
2484
2484
2485
-
If the value of 'font-style' is ''font-style/normal'',
2485
+
If the value of 'font-style!!property' is ''font-style/normal'',
2486
2486
2487
2487
1. Oblique values greater than or equal to 0 are checked in ascending order.
2488
2488
2. If no match is found, italic values greater than or equal to 0 are checked in ascending
@@ -2499,10 +2499,10 @@ if all font style properties were set to their initial value.
2499
2499
2500
2500
If an oblique angle was found in the above search, all faces which don't include that oblique angle are excluded from the matching set. Otherwise, if an italic value was found in the above search, all faces which don't include that italic value are excluded from the matching set.
2501
2501
2502
-
User Agents are not required to distinguish between italic and oblique fonts. In such User Agents, the 'font-style' matching steps above are performed by mapping both italic values and oblique angles onto a common scale. The exact nature of this mapping is undefined, however, an italic value of 1 must map to the same value that an oblique angle of 20deg maps to. Within font
2502
+
User Agents are not required to distinguish between italic and oblique fonts. In such User Agents, the 'font-style!!property' matching steps above are performed by mapping both italic values and oblique angles onto a common scale. The exact nature of this mapping is undefined, however, an italic value of 1 must map to the same value that an oblique angle of 20deg maps to. Within font
2503
2503
families defined via ''@font-face'' rules, italic and oblique
2504
2504
faces must be distinguished using the value of the
2505
-
'font-style' descriptor.
2505
+
'font-style!!descriptor' descriptor.
2506
2506
2507
2507
For families that lack any italic or oblique faces, user agents
2508
2508
may create artificial oblique faces, if this is permitted by the
@@ -2851,10 +2851,10 @@ text run.
2851
2851
'font-stretch!!property', and 'font-style!!property' properties.</span>
2852
2852
2853
2853
The application of the value enabled by
2854
-
'font-style' is affected by font selection, because this property might select an
2854
+
'font-style!!property' is affected by font selection, because this property might select an
2855
2855
italic or an oblique font. The value applied is the closest matching value as determined
2856
2856
by the <a href="font-style-matching">font matching algorithm</a>. User Agents must apply
2857
-
at most one value due to the 'font-style' property; both "ital" and "slnt" values should
2857
+
at most one value due to the 'font-style!!property' property; both "ital" and "slnt" values should
2858
2858
not be set together.
2859
2859
2860
2860
If the selected font is defined in an ''@font-face'' rule, then the values applied at this step
0 commit comments