Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 49d63bf1b1297677e0eef6d7e4a91bd61f1bd826
https://github.com/WebKit/WebKit/commit/49d63bf1b1297677e0eef6d7e4a91bd61f1bd826
Author: Ahmad Saleem <[email protected]>
Date: 2026-06-10 (Wed, 10 Jun 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/operators/mo-fallback-font-expected.html
A
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/operators/mo-fallback-font-ref.html
A
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/operators/mo-fallback-font.html
M Source/WebCore/rendering/mathml/MathOperator.cpp
Log Message:
-----------
[MathML] Operators routed through MathOperator are invisible when their glyph
only exists in a fallback font
https://bugs.webkit.org/show_bug.cgi?id=316728
rdar://178096170
Reviewed by Frédéric Wang Nélar.
MathOperator::getGlyph() required the operator's base glyph to come from the
primary font. That is only needed for stretchy and large operators, which build
size variants and glyph assemblies from the primary font's OpenType MATH table.
A plain (NormalOperator) operator just paints its base glyph, so any cascade
font
is fine. The minus sign is always routed through MathOperator (to promote a DOM
hyphen to U+2212), so on pages whose primary font is a text font lacking U+2212
the minus resolved to a fallback font but was discarded, leaving the operator
empty and invisible.
Accept a fallback-font glyph for NormalOperator; keep the primary-font
requirement for stretchy and large operators.
Tests:
imported/w3c/web-platform-tests/mathml/presentation-markup/operators/mo-fallback-font-ref.html
imported/w3c/web-platform-tests/mathml/presentation-markup/operators/mo-fallback-font.html
*
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/operators/mo-fallback-font-expected.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/operators/mo-fallback-font-ref.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/operators/mo-fallback-font.html:
Added.
* Source/WebCore/rendering/mathml/MathOperator.cpp:
(WebCore::MathOperator::getGlyph const):
Canonical link: https://commits.webkit.org/314928@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications