Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 04b65f4f8bb6a63a4ca36371d6bc579e75ef0e8c
https://github.com/WebKit/WebKit/commit/04b65f4f8bb6a63a4ca36371d6bc579e75ef0e8c
Author: Ahmad Saleem <[email protected]>
Date: 2026-06-09 (Tue, 09 Jun 2026)
Changed paths:
M LayoutTests/TestExpectations
M
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/direction/direction-overall-003-expected.html
M
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/direction/direction-overall-003-ref.html
M
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/direction/direction-overall-003.html
Log Message:
-----------
[MathML] Update direction-overall-003.html to match spec-compliant symmetric
prescript spacing
https://bugs.webkit.org/show_bug.cgi?id=308438
rdar://170932312
Reviewed by Frédéric Wang Nélar.
The imported WPT reftest direction-overall-003.html was originally based
on Gecko's "always-after-scripts" spacing, where every script (prescript
and postscript) has the space-after-script on its inline-end side. Both
WebKit and Chromium implement the symmetric layout from MathML Core
instead: the space-after-script sits on the outer side of each script,
i.e. before each prescript pair and after each postscript pair. Under
that layout the base is adjacent to the inner prescript pair (no space
between them) and the prescript pairs shift inward by one
space-after-script compared to Gecko's rendering, so the existing
reference bands no longer line up with the squares in dir=rtl.
Update the test and its reference so the colored bands match WebKit's
(and Chromium's) symmetric output: widen the container to 320px, shrink
the magenta (base) band to 40px, shift the blue and yellow bands left
by one space-after-script (30px), and move the trailing black separator
stripes to the new band boundaries.
Refer to Specification Issue: https://github.com/w3c/mathml-core/issues/217
No change required; the rendering already matches the spec.
* LayoutTests/TestExpectations: Remove failing expectation.
*
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/direction/direction-overall-003.html:
Resize and reposition the colored bands and black separators to match
the symmetric prescript layout.
*
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/direction/direction-overall-003-ref.html:
Mirror the band changes in the reference.
*
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/direction/direction-overall-003-expected.html:
Ditto
Canonical link: https://commits.webkit.org/314879@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications