RESOLVED FIXED285142
Fix font-style-interpolation.html WPT to expect `oblique 0deg` instead of `normal`
https://bugs.webkit.org/show_bug.cgi?id=285142
Summary Fix font-style-interpolation.html WPT to expect `oblique 0deg` instead of `no...
Karl Dubost
Reported 2024-12-24 23:22:25 PST
Attachments
Radar WebKit Bug Importer
Comment 2 2024-12-31 23:23:15 PST
Tim Nguyen (:ntim)
Comment 3 2025-01-01 07:43:22 PST
You could fix this by making ComputedStyleExtractor return `CSSPrimitiveValue::create(CSSValueNormal)` when the angle is 0deg: https://searchfox.org/wubkat/rev/334d5acc1496f43ce5ffbc3abc190f145f9add1a/Source/WebCore/css/ComputedStyleExtractor.cpp#2557-2563
Sam Weinig
Comment 4 2025-01-02 17:04:03 PST
My reading of the spec is that 0deg oblique is correct. Per https://drafts.csswg.org/css-fonts-4/#font-weight-prop, Animation Type is spec'd to "by computed value type;normal animates as oblique 0deg".
Tim Nguyen (:ntim)
Comment 5 2025-01-02 17:11:28 PST
(In reply to Sam Weinig from comment #4) > My reading of the spec is that 0deg oblique is correct. > > Per https://drafts.csswg.org/css-fonts-4/#font-weight-prop, Animation Type > is spec'd to "by computed value type;normal animates as oblique 0deg". Indeed: https://github.com/w3c/csswg-drafts/issues/2505 The computed value should be left alone, and only the interpolation should use `oblique 0deg`. https://drafts.csswg.org/css-fonts-4/#font-style-prop We should probably update the WPT then.
Tim Nguyen (:ntim)
Comment 6 2025-01-02 17:15:38 PST
Arguably `normal` is the shorter serialization for `oblique 0deg` so my suggested change might be reasonable, but more as a general serialization rule rather than an interpolation specific one.
Sam Weinig
Comment 7 2025-01-02 17:22:52 PST
Updating the tests makes the most sense to me.
Tim Nguyen (:ntim)
Comment 8 2025-01-02 17:45:39 PST Comment hidden (obsolete)
Tim Nguyen (:ntim)
Comment 9 2025-01-02 17:45:46 PST
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/49892
Tim Nguyen (:ntim)
Comment 10 2025-01-02 17:47:54 PST
EWS
Comment 11 2025-01-02 18:23:06 PST
Committed 288388@main (4cb01b5b4562): <https://commits.webkit.org/288388@main> Reviewed commits have been landed. Closing PR #38481 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.