Skip to content

Commit cdd5ad3

Browse files
committed
ok lets try some more bikeshed syntax for property descriptor disambiguation
1 parent d25a38c commit cdd5ad3

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

css-fonts-4/Overview.bs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ face exists and a different width is substituted:
519519
User Agents must not sythesize stretched faces for font families which lack actual stretched faces.
520520

521521
<h3 id="font-style-prop">
522-
Font style: the 'font-style' property</h3>
522+
Font style: the 'font-style!!property' property</h3>
523523

524524
<pre class="propdef">
525525
Name: font-style
@@ -533,7 +533,7 @@ Media: visual
533533
Animatable: If both "from" and "to" values are "oblique", then yes, as an <<angle>>. Otherwise, no.
534534
</pre>
535535

536-
The 'font-style' property allows
536+
The 'font-style!!property' property allows
537537
italic or oblique faces to be selected. Italic forms are generally cursive in nature while oblique faces are
538538
typically sloped versions of the regular face. Oblique faces can be simulated by artificially sloping the
539539
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.
24102410
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.
24112411
</div>
24122412

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>
24142414
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.
24162416
2417-
If the value of 'font-style' is ''italic'':
2417+
If the value of 'font-style!!property' is ''italic'':
24182418
24192419
1. If the matching set includes faces with italic values containing the mapped value of ''italic'',
24202420
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.
24352435
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.
24362436
</div>
24372437

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,
24392439

24402440
<ol id="greater-oblique-steps">
24412441
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.
24562456
</div>
24572457
</ol>
24582458

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,
24602460

24612461
<ol id="lesser-oblique-steps">
24622462
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.
24802480
</div>
24812481
</ol>
24822482

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.
24842484

2485-
If the value of 'font-style' is ''font-style/normal'',
2485+
If the value of 'font-style!!property' is ''font-style/normal'',
24862486

24872487
1. Oblique values greater than or equal to 0 are checked in ascending order.
24882488
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.
24992499

25002500
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.
25012501

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
25032503
families defined via ''@font-face'' rules, italic and oblique
25042504
faces must be distinguished using the value of the
2505-
'font-style' descriptor.
2505+
'font-style!!descriptor' descriptor.
25062506

25072507
For families that lack any italic or oblique faces, user agents
25082508
may create artificial oblique faces, if this is permitted by the
@@ -2851,10 +2851,10 @@ text run.
28512851
'font-stretch!!property', and 'font-style!!property' properties.</span>
28522852

28532853
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
28552855
italic or an oblique font. The value applied is the closest matching value as determined
28562856
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
28582858
not be set together.
28592859

28602860
If the selected font is defined in an ''@font-face'' rule, then the values applied at this step

0 commit comments

Comments
 (0)