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

Existing WPT tests expect `oblique 14deg` to serialise as `oblique`, which introduces multiple Interop failures:

- https://wpt.fyi/results/css/css-fonts/parsing/font-style-computed.html
- https://wpt.fyi/results/css/css-fonts/variations/font-style-parsing.html

Note that this also affects `calc()` expressions that happen to resolve to the magic number: the last test expects `oblique calc(10grad + 5deg)` to also serialise as `oblique`. 

Beyond these tests, another illustrative example is **`oblique 14.2deg`**.

Naively, one might expect that value to serialise to itself. However:

- Chrome rounds the degree value `14.2deg` to `14deg` and then computes that as `italic`.
- WebKit also rounds to `14deg`, which then serialises as `oblique`.
- Firefox uses a different rounding, so the computed value becomes `oblique 14.1992deg`.




-- 
GitHub Notification of comment by felipeerias
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11633#issuecomment-4264439433 using your GitHub account


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

Received on Friday, 17 April 2026 00:48:33 UTC