Skip to content

[css-fonts-4] Make behaviour of new auto values on @font-face properties clearer #9485

Open
@wezm

Description

@wezm

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions