[csswg-drafts] [css-fonts] Should `font-style: oblique 14deg` serialize as `font-style: oblique`? (#11633)

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

== [css-fonts] Should `font-style: oblique 14deg` serialize as `font-style: oblique`? ==
Following on from the discussion in https://github.com/w3c/csswg-drafts/issues/11430, the additional question of the serialization of `font-style: oblique 14deg` was raised.

Following the rule of "shortest serialization", there is an argument to made that `font-style: oblique 14deg` should serialize as `font-style: oblique`, as the spec states that `font-style: oblique` (with no angle given) should use an angle of 14 degrees:

> [...] The lack of an `<angle>` represents 14deg. (Note that a font might internally provide its own mapping for "oblique", but the mapping within the font is disregarded.) [...] (https://drafts.csswg.org/css-fonts-4/#font-style-prop)

Whether or not this argument holds, the spec should be explicit if this behavior is expected.

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


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

Received on Sunday, 2 February 2025 20:17:22 UTC