WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
281210
Ignore legacy mstyle attributes (background, color, fontsize, fontstyle, fontweight) when CoreMathML is enabled
https://bugs.webkit.org/show_bug.cgi?id=281210
Summary
Ignore legacy mstyle attributes (background, color, fontsize, fontstyle, font...
Frédéric Wang (:fredw)
Reported
2024-10-10 01:46:09 PDT
I guess it will be enough to make MathMLElement::hasPresentationalHintsForAttribute return false for these attributes when CoreMathML is enabled here:
https://searchfox.org/wubkat/rev/168430191bc069c153b23fdddfc818adea1f2992/Source/WebCore/mathml/MathMLElement.cpp#112
Test:
https://wpt.fyi/results/mathml/relations/css-styling/attribute-mapping-001.html
Attachments
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2024-10-10 04:00:21 PDT
Yes - I tested this yesterday and deleting them make us pass below WPT.
Radar WebKit Bug Importer
Comment 2
2024-10-17 01:47:18 PDT
<
rdar://problem/138099409
>
Ahmad Saleem
Comment 3
2024-10-17 18:57:38 PDT
I am assigning it to myself to do draft PR to get feedback.
Eri
Comment 4
2025-09-29 03:03:40 PDT
I think this can be closed since we are already passing the test when CoreMathMLEnabled is on:
https://searchfox.org/wubkat/source/LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/css-styling/attribute-mapping-001-expected.txt
The relevant code that gates this behaviour is here:
https://searchfox.org/wubkat/rev/168430191bc069c153b23fdddfc818adea1f2992/Source/WebCore/mathml/MathMLElement.cpp#195
Karl Dubost
Comment 5
2025-09-29 17:08:20 PDT
Thanks Eri.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug