Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-fonts] Should font-style: oblique 14deg serialize as font-style: oblique? #11633

Open
weinig opened this issue Feb 2, 2025 · 1 comment
Labels
css-fonts-4 Current Work

Comments

@weinig
Copy link
Contributor

weinig commented Feb 2, 2025

Following on from the discussion in #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.

@Loirooriol Loirooriol added the css-fonts-4 Current Work label Feb 3, 2025
@nt1m
Copy link
Member

nt1m commented Feb 4, 2025

Given the oblique angle used to be 20deg before (and changed to 14deg later), I would say serializing the angle would be better for compatibility (which is higher priority than shortest serialization) :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-fonts-4 Current Work
Projects
None yet
Development

No branches or pull requests

3 participants