Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 99bd45886334564de5864fbc0fe24aaa9f1cf618
https://github.com/WebKit/WebKit/commit/99bd45886334564de5864fbc0fe24aaa9f1cf618
Author: Ahmad Saleem <[email protected]>
Date: 2026-05-08 (Fri, 08 May 2026)
Changed paths:
M LayoutTests/TestExpectations
M Source/WebCore/rendering/mathml/RenderMathMLRoot.cpp
Log Message:
-----------
Fix radical symbol paint offset when border/padding is set on msqrt/mroot
https://bugs.webkit.org/show_bug.cgi?id=310440
rdar://173081436
Reviewed by Alan Baradlay.
This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.
m_radicalOperatorTop is computed in content-area coordinates during
layoutBlock(), before adjustLayoutForBorderAndPadding() shifts children.
However, paint() starts from the border-box origin (paintOffset +
location()), so the vertical offset needs borderAndPaddingBefore() added.
The horizontal offset already correctly included borderAndPaddingStart().
This is consistent with how RenderMathMLFraction::paint() handles its
fraction bar position.
* LayoutTests/TestExpectations: Progressions
* Source/WebCore/rendering/mathml/RenderMathMLRoot.cpp:
(WebCore::RenderMathMLRoot::paint):
Canonical link: https://commits.webkit.org/312902@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications