Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9d77743bb040527f2436a48da3c7c6a179e4ef0d
https://github.com/WebKit/WebKit/commit/9d77743bb040527f2436a48da3c7c6a179e4ef0d
Author: Eri Pazos Pérez <[email protected]>
Date: 2025-12-19 (Fri, 19 Dec 2025)
Changed paths:
M LayoutTests/TestExpectations
M
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/math-script-level-and-math-style/math-script-level-002.tentative-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/math-script-level-and-math-style/math-script-level-004.tentative-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/mathml/relations/css-styling/scriptlevel-001-expected.txt
M LayoutTests/mathml/presentation/scripts-subsup-expected.html
M LayoutTests/mathml/presentation/scripts-subsup.html
M LayoutTests/mathml/presentation/scripts-underover-expected.html
M LayoutTests/mathml/presentation/scripts-underover.html
M LayoutTests/platform/glib/TestExpectations
M
LayoutTests/platform/glib/accessibility/math-multiscript-attributes-expected.txt
R
LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/css-styling/scriptlevel-001-expected.txt
M LayoutTests/platform/glib/mathml/opentype/horizontal-expected.txt
M
LayoutTests/platform/glib/mathml/opentype/horizontal-munderover-expected.txt
M
LayoutTests/platform/glib/mathml/opentype/opentype-stretchy-horizontal-expected.txt
M LayoutTests/platform/glib/mathml/presentation/bug159513-expected.txt
M
LayoutTests/platform/ios/imported/w3c/web-platform-tests/mathml/relations/css-styling/scriptlevel-001-expected.txt
M
LayoutTests/platform/ios/mathml/opentype/opentype-stretchy-horizontal-expected.txt
R
LayoutTests/platform/mac/imported/w3c/web-platform-tests/mathml/relations/css-styling/scriptlevel-001-expected.txt
M
LayoutTests/platform/mac/mathml/opentype/opentype-stretchy-horizontal-expected.txt
M Source/WebCore/CMakeLists.txt
M Source/WebCore/DerivedSources-input.xcfilelist
M Source/WebCore/DerivedSources.make
M Source/WebCore/css/CSSProperties.json
M Source/WebCore/css/CSSValueKeywords.in
M Source/WebCore/css/mathml.css
A Source/WebCore/css/mathmlFontSizeMath.css
A Source/WebCore/css/mathmlLegacyFontSizeMath.css
M Source/WebCore/css/parser/CSSParserContext.cpp
M Source/WebCore/css/parser/CSSParserContext.h
M Source/WebCore/css/parser/CSSPropertyParserConsumer+Font.cpp
M Source/WebCore/style/InspectorCSSOMWrappers.cpp
M Source/WebCore/style/StyleBuilderCustom.h
M Source/WebCore/style/StyleResolveForFont.cpp
M Source/WebCore/style/UserAgentStyle.cpp
M Source/WebCore/style/UserAgentStyle.h
Log Message:
-----------
Implement font-size: math.
https://bugs.webkit.org/show_bug.cgi?id=49309
Reviewed by Frédéric Wang.
Parse `font-size: math` and add the logic to compute the
scale of the font https://www.w3.org/TR/css-fonts-4/#valdef-font-size-math.
This is gated behind the `CSSMathDepth` preference.
A new user agent spreadsheet is added to keep the legacy behaviour when
the preference is not enabled.
* LayoutTests/TestExpectations:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/math-script-level-and-math-style/math-script-level-002.tentative-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/math-script-level-and-math-style/math-script-level-004.tentative-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/mathml/relations/css-styling/scriptlevel-001-expected.txt:
Renamed from
LayoutTests/platform/ios/imported/w3c/web-platform-tests/mathml/relations/css-styling/scriptlevel-001-expected.txt.
*
LayoutTests/imported/w3c/web-platform-tests/mathml/relations/css-styling/size-containment-001.tentative-expected.txt:
Renamed from
LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/css-styling/size-containment-001.tentative-expected.txt.
* LayoutTests/mathml/presentation/scripts-subsup-expected.html:
* LayoutTests/mathml/presentation/scripts-subsup.html:
* LayoutTests/mathml/presentation/scripts-underover-expected.html:
* LayoutTests/mathml/presentation/scripts-underover.html:
* LayoutTests/platform/glib/TestExpectations:
*
LayoutTests/platform/glib/accessibility/math-multiscript-attributes-expected.txt:
* LayoutTests/platform/glib/mathml/opentype/horizontal-expected.txt:
* LayoutTests/platform/glib/mathml/opentype/horizontal-munderover-expected.txt:
*
LayoutTests/platform/glib/mathml/opentype/opentype-stretchy-horizontal-expected.txt:
* LayoutTests/platform/glib/mathml/presentation/bug159513-expected.txt:
*
LayoutTests/platform/ios/imported/w3c/web-platform-tests/mathml/relations/css-styling/scriptlevel-001-expected.txt:
*
LayoutTests/platform/ios/imported/w3c/web-platform-tests/mathml/relations/css-styling/size-containment-001.tentative-expected.txt:
*
LayoutTests/platform/ios/mathml/opentype/opentype-stretchy-horizontal-expected.txt:
*
LayoutTests/platform/mac/imported/w3c/web-platform-tests/mathml/relations/css-styling/scriptlevel-001-expected.txt:
Removed.
*
LayoutTests/platform/mac/imported/w3c/web-platform-tests/mathml/relations/css-styling/size-containment-001.tentative-expected.txt:
*
LayoutTests/platform/mac/mathml/opentype/opentype-stretchy-horizontal-expected.txt:
* Source/WebCore/CMakeLists.txt:
* Source/WebCore/DerivedSources-input.xcfilelist:
* Source/WebCore/DerivedSources.make:
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/CSSValueKeywords.in:
* Source/WebCore/css/mathml.css:
(mroot > :not(:first-child)):
(msub > :not(:first-child),):
* Source/WebCore/css/mathmlFontSizeMath.css: Added.
(#if defined(ENABLE_MATHML) && ENABLE_MATHML):
(math):
* Source/WebCore/css/mathmlLegacyFontSizeMath.css: Added.
(#if defined(ENABLE_MATHML) && ENABLE_MATHML):
(msub > :not(:first-child),):
* Source/WebCore/css/parser/CSSParserContext.cpp:
(WebCore::applyUASheetBehaviorsToContext):
(WebCore::add):
* Source/WebCore/css/parser/CSSParserContext.h:
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Font.cpp:
(WebCore::CSSPropertyParserHelpers::consumeFontSizeUnresolved):
* Source/WebCore/style/InspectorCSSOMWrappers.cpp:
(WebCore::Style::InspectorCSSOMWrappers::collectDocumentWrappers):
* Source/WebCore/style/StyleBuilderCustom.h:
(WebCore::Style::BuilderCustom::determineMathDepthScale):
(WebCore::Style::BuilderCustom::applyValueFontSize):
* Source/WebCore/style/StyleResolveForFont.cpp:
(WebCore::Style::fontSizeFromUnresolvedFontSize):
* Source/WebCore/style/UserAgentStyle.cpp:
(WebCore::Style::UserAgentStyle::ensureDefaultStyleSheetsForElement):
* Source/WebCore/style/UserAgentStyle.h:
Canonical link: https://commits.webkit.org/304802@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications