Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 10f46a26ae45070f312c1a1e38019e131448e048
https://github.com/WebKit/WebKit/commit/10f46a26ae45070f312c1a1e38019e131448e048
Author: Ahmad Saleem <[email protected]>
Date: 2026-03-09 (Mon, 09 Mar 2026)
Changed paths:
M LayoutTests/TestExpectations
M Source/WebCore/rendering/mathml/MathOperator.cpp
M Source/WebCore/rendering/mathml/RenderMathMLToken.cpp
Log Message:
-----------
MathML token elements ignore -webkit-text-fill-color when painting math
variant glyphs
https://bugs.webkit.org/show_bug.cgi?id=309449
rdar://172020318
Reviewed by Frédéric Wang.
Single-character <mi> elements get mapped to math variant glyphs and
painted via a custom drawGlyphs path that bypasses TextPainter. This
path resolved fill color from CSS `color` rather than
`-webkit-text-fill-color`, causing the property to be ignored.
Fixed by using visitedDependentTextFillColorApplyingColorFilter()
instead of visitedDependentColorApplyingColorFilter() in both
RenderMathMLToken::paint() and MathOperator::paint(). When
-webkit-text-fill-color is unset, this falls back to `color`, so
existing behavior is preserved.
* LayoutTests/TestExpectations: Progression
* Source/WebCore/rendering/mathml/MathOperator.cpp:
(WebCore::MathOperator::paint):
* Source/WebCore/rendering/mathml/RenderMathMLToken.cpp:
(WebCore::RenderMathMLToken::paint):
Canonical link: https://commits.webkit.org/308911@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications