Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e03c39a3e5a6a64c9a48cb23646fb3cceb1b73b9
      
https://github.com/WebKit/WebKit/commit/e03c39a3e5a6a64c9a48cb23646fb3cceb1b73b9
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-02-22 (Sun, 22 Feb 2026)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/scripts/subsup-6-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/scripts/subsup-6-rtl-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/scripts/subsup-6-rtl.html
    M Source/WebCore/rendering/mathml/RenderMathMLScripts.cpp

  Log Message:
  -----------
  [MathML] Position mprescripts element in mmultiscripts layout
https://bugs.webkit.org/show_bug.cgi?id=308426
rdar://170909975

Reviewed by Frédéric Wang.

This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.

The mprescripts element was never explicitly positioned during
mmultiscripts layout. It was only used as a loop boundary to
separate prescripts from postscripts, leaving it at its default
position. Position it aligned with the base (left edge in LTR,
right edge in RTL), vertically centered with the base.

Also fix RTL positioning of prescript pairs by placing the
space-after-script on the inline-end side of each pair, so
mirrorIfNeeded produces correct visual positions in RTL mode.

* Source/WebCore/rendering/mathml/RenderMathMLScripts.cpp:
(WebCore::RenderMathMLScripts::layoutBlock):
* 
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/scripts/subsup-6-expected.txt:
 Progression
* 
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/scripts/subsup-6-rtl-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/scripts/subsup-6-rtl.html:
 Added.

Canonical link: https://commits.webkit.org/308013@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to