Bug 281210

Summary: Ignore legacy mstyle attributes (background, color, fontsize, fontstyle, fontweight) when CoreMathML is enabled
Product: WebKit Reporter: Frédéric Wang (:fredw) <fred.wang>
Component: MathMLAssignee: Ahmad Saleem <ahmad.saleem792>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, eri, harpsichen, karlcow, webkit-bug-importer
Priority: P2 Keywords: InRadar, WPTImpact
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 281206    

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
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
Ahmad Saleem
Comment 3 2024-10-17 18:57:38 PDT
I am assigning it to myself to do draft PR to get feedback.
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.