Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a8961fe24eb8b330da0ae1eaf28df5f61b489f10
https://github.com/WebKit/WebKit/commit/a8961fe24eb8b330da0ae1eaf28df5f61b489f10
Author: Vitor Roriz <[email protected]>
Date: 2026-05-29 (Fri, 29 May 2026)
Changed paths:
M LayoutTests/TestExpectations
M
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/font-face-style-normal-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/variations/at-font-face-descriptors-expected.txt
A
LayoutTests/platform/glib/imported/w3c/web-platform-tests/css/css-fonts/variations/at-font-face-font-matching-expected.txt
M Source/WebCore/css/parser/CSSPropertyParserConsumer+Font.cpp
Log Message:
-----------
@font-face font-style: serialize 'oblique 0deg' as 'normal'
https://bugs.webkit.org/show_bug.cgi?id=315793
rdar://178185291
Reviewed by Tim Nguyen.
Per CSS Fonts 4 §descdef-font-face-font-style, 'normal' equates to
'oblique 0deg' in the @font-face descriptor. The regular font-style
property already does this canonicalization at serialize time in
CSSFontStyleWithAngleValue::customCSSText, but the @font-face
descriptor parser took a different path and was missing it. Therefore
canonicalize at parse time in consumeUnresolvedFontFaceFontStyle so
the descriptor's CSSOM serializes as 'normal'. Also collapses
'oblique 0deg 0deg' (the equivalent zero-bounds range).
* LayoutTests/TestExpectations:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/font-face-style-normal-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/variations/at-font-face-descriptors-expected.txt:
*
LayoutTests/platform/glib/imported/w3c/web-platform-tests/css/css-fonts/variations/at-font-face-font-matching-expected.txt:
Added.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Font.cpp:
(WebCore::CSSPropertyParserHelpers::consumeUnresolvedFontFaceFontStyle):
Canonical link: https://commits.webkit.org/314128@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications