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 0deg serialize as oblique 0deg or normal? #10911

Open
weinig opened this issue Sep 18, 2024 · 1 comment
Labels
css-fonts-4 Current Work

Comments

@weinig
Copy link

weinig commented Sep 18, 2024

The WPT tests are a bit inconsistent on what they say, as are the implementations, but should font-style: oblique 0deg serialize as oblique 0deg or normal?

In https://wpt.fyi/results/css/css-fonts/variations/font-style-parsing.html, the test indicates font-style: oblique 0deg should serialize as is.

In https://wpt.fyi/results/css/css-fonts/animations/font-style-interpolation.html, the test indicates font-style: oblique 0deg should serialize as normal.

My guess is the animation test is wrong, as the spec, https://drafts.csswg.org/css-fonts-4/#font-style-prop, states that the computed value should be:

the keyword specified, plus angle in degrees if specified

and the animation type should be:

by computed value type;normal animates as oblique 0deg

@Loirooriol
Copy link
Contributor

Not familiar with this, but they seem to have different behaviors, so I would expect different serializations

  • normal: Matches against a face that is classified as a normal face, one that is neither italic or obliqued.
  • oblique <angle>: Controls matching against an oblique face.

@Loirooriol Loirooriol added the css-fonts-4 Current Work label Sep 19, 2024
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

2 participants