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
CSS Fonts Level 4 adds an auto value to font-weight, font-style, and font-stretch in @font-face rules and uses it as the initial value of these properties. The spec does not provide much detail on how this auto value works. This is the only note I could find:
The auto values for these three descriptors have the following effects:
For font selection purposes, the font is selected as if the appropriate initial value is chosen
For variation axis clamping, clamping does not occur
I think that this needs to be expanded and that "appropriate initial value" defined.
Looking over #2485 clarified some things for me that I think should be added to the spec. Specifically taking font-weight as an example it seems that auto acts as an alias for normal for fonts without a wght axis, matching the behaviour of CSS Fonts Level 3. For fonts with a wght axis it seems that it acts as a sort of wildcard equivalent to 1 1000.
The text was updated successfully, but these errors were encountered:
I think that this needs to be expanded and that "appropriate initial value" defined.
Ah, I see. In 9a6e704 the initial value was "normal" for all three font-weight, font-style and font-width and that would be used for font selection purposes. So "appropriate initial value" made sense. But in 36f80a0 that was changed to auto because of #2485 (comment) so now it needs to explicitly say 'normal`, for font selection.
And for variation handling, it means no clamping is applied.
@svgeesus hmm are the changes right? E.g. for font-weight normal means 400 and if that was used with a variable font with a wght axis ranging from 500 to 900 the new text suggests to me that that font would not be selected, whereas I think the intention of auto is that it would be selected?
CSS Fonts Level 4 adds an
auto
value tofont-weight
,font-style
, andfont-stretch
in@font-face
rules and uses it as the initial value of these properties. The spec does not provide much detail on how thisauto
value works. This is the only note I could find:I think that this needs to be expanded and that "appropriate initial value" defined.
Looking over #2485 clarified some things for me that I think should be added to the spec. Specifically taking
font-weight
as an example it seems thatauto
acts as an alias fornormal
for fonts without awght
axis, matching the behaviour of CSS Fonts Level 3. For fonts with awght
axis it seems that it acts as a sort of wildcard equivalent to1 1000
.The text was updated successfully, but these errors were encountered: