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

wezm has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-fonts-4] Make behaviour of new auto values on @font-face properties clearer ==
[CSS Fonts Level 4](https://www.w3.org/TR/css-fonts-4/#font-prop-desc) 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`.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9485 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 18 October 2023 02:05:41 UTC