Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ab58f961d64a49182b54930a5bb5a78e80ea6e92
https://github.com/WebKit/WebKit/commit/ab58f961d64a49182b54930a5bb5a78e80ea6e92
Author: shierote <[email protected]>
Date: 2026-07-09 (Thu, 09 Jul 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-face-metric-overrides-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-face-metric-overrides.html
M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
M Source/WebCore/css/CSSProperties.json
Log Message:
-----------
Parse @font-face metric override descriptors behind a flag
https://bugs.webkit.org/show_bug.cgi?id=219735
Reviewed by Elika Etemad.
Add a testable feature flag for CSS Fonts 4 @font-face metric override
descriptors and register ascent-override, descent-override, and
line-gap-override with the generated CSS parser.
This initial patch accepts normal and non-negative percentages in
@font-face rules and preserves the parsed CSSOM descriptor values. The
FontFace/CSSFontFaceDescriptors API plumbing and the font metrics
application will be handled in follow-up patches.
Test:
imported/w3c/web-platform-tests/css/css-fonts/parsing/font-face-metric-overrides.html
*
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-face-metric-overrides-expected.txt:
Added expected results.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-face-metric-overrides.html:
Added WPT coverage for valid and invalid metric override descriptor values.
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
Added the CSSFontFaceMetricOverrideDescriptorsEnabled feature flag.
* Source/WebCore/css/CSSProperties.json:
Added gated @font-face descriptor definitions for ascent-override,
descent-override, and line-gap-override.
Canonical link: https://commits.webkit.org/316829@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications