Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c699c8f329f4c16fdeb45075787d00ec4b976c30
https://github.com/WebKit/WebKit/commit/c699c8f329f4c16fdeb45075787d00ec4b976c30
Author: Ahmad Saleem <[email protected]>
Date: 2026-06-10 (Wed, 10 Jun 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/mrow/no-spacing-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/scripts/subsup-2-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/scripts/subsup-3-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/mathml/relations/css-styling/scriptlevel-001-expected.txt
M
LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/css-styling/display-2-expected.txt
M
LayoutTests/platform/ios/imported/w3c/web-platform-tests/mathml/relations/css-styling/display-2-expected.txt
M
LayoutTests/platform/mac/imported/w3c/web-platform-tests/mathml/relations/css-styling/display-2-expected.txt
M Source/WebCore/rendering/mathml/RenderMathMLScripts.cpp
Log Message:
-----------
[MathML] Use MathML Core fallback values for script layout constants
https://bugs.webkit.org/show_bug.cgi?id=316737
rdar://179177178
Reviewed by Frédéric Wang Nélar.
This patch aligns WebKit with Gecko / Firefox.
When the font has no OpenType MATH table, RenderMathMLScripts used
heuristic constants that deviated from the fallbacks per spec [1].
Align them with the spec:
- spaceAfterScript: 1/5em -> 1/24em
- subSuperscriptGapMin: 1/5em -> 4 x default rule thickness
- subscriptBaselineDropMin: x-height/2 -> 0
- superscriptBaselineDropMax: x-height/2 -> 0
[1]
https://flagged.apple.com:443/proxy?t2=Da8t0I5Da2&o=aHR0cHM6Ly93M2MuZ2l0aHViLmlvL21hdGhtbC1jb3JlLyNsYXlvdXQtY29uc3RhbnRzLW1hdGhjb25zdGFudHM=&emid=409eb22d-85b5-42d8-8d58-324e1990fcf8&c=11
*
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/mrow/no-spacing-expected.txt:
Rebaselined.
*
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/scripts/subsup-2-expected.txt:
Progression
*
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/scripts/subsup-3-expected.txt:
Ditto
*
LayoutTests/imported/w3c/web-platform-tests/mathml/relations/css-styling/scriptlevel-001-expected.txt:
Rebaselined.
*
LayoutTests/platform/mac/imported/w3c/web-platform-tests/mathml/relations/css-styling/display-2-expected.txt:
Rebaselined.
*
LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/css-styling/display-2-expected.txt:
Ditto
*
LayoutTests/platform/ios/imported/w3c/web-platform-tests/mathml/relations/css-styling/display-2-expected.txt:
Ditto
* Source/WebCore/rendering/mathml/RenderMathMLScripts.cpp:
(WebCore::RenderMathMLScripts::spaceAfterScript):
(WebCore::RenderMathMLScripts::verticalParameters
const):
Canonical link:
https://flagged.apple.com:443/proxy?t2=DM2a0o8nQ3&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzE1MDA0QG1haW4=&emid=409eb22d-85b5-42d8-8d58-324e1990fcf8&c=11
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications