Bug 281206

Summary: Disable some legacy MathML attributes and values on all ports
Product: WebKit Reporter: Frédéric Wang (:fredw) <fred.wang>
Component: MathMLAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, karlcow, webkit-bug-importer
Priority: P2 Keywords: BrowserCompat, InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 281208, 281210, 196142, 197493, 197494, 197495    
Bug Blocks: 195797    

Frédéric Wang (:fredw)
Reported 2024-10-10 01:30:03 PDT
The following legacy features are implemented in WebKit but are not available in any other browser for a while: - numalign/denomalign attributes (*) - mfrac's linethickness values: thin, medium, thick values (*) - nonzero unitless values (e.g. 5 to mean 500%) for MathML lengths (*) - subscriptshift/superscriptshift attributes. - mstyle attributes: background, color, fontsize, fontstyle, fontweight - mathsize values: small, normal, big (*) The features marked as (*) can be disabled via https://searchfox.org/wubkat/rev/168430191bc069c153b23fdddfc818adea1f2992/Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml#2062. On WPE/GTK, we already disable them by default but we might consider doing that for all ports. Be aware though that this preference also disables more things such as named spaces (see https://searchfox.org/wubkat/rev/168430191bc069c153b23fdddfc818adea1f2992/Source/WebCore/mathml/MathMLPresentationElement.cpp#197). Some WPT tests (probably non-exhaustive): - https://wpt.fyi/results/mathml/presentation-markup/fractions/frac-numalign-denomalign-001.html - https://wpt.fyi/results/mathml/presentation-markup/fractions/frac-linethickness-001.html - https://wpt.fyi/results/mathml/relations/css-styling/lengths-1.html - https://wpt.fyi/results/mathml/relations/css-styling/lengths-2.html - https://wpt.fyi/results/mathml/presentation-markup/scripts/subsup-legacy-scriptshift-attributes-001.tentative.html - https://wpt.fyi/results/mathml/relations/css-styling/attribute-mapping-001.html
Attachments
Ahmad Saleem
Comment 1 2024-10-10 04:02:22 PDT
I tried this yesterday as well: - mathsize values: small, normal, big (*) It compiles and do make us progress `length-1.html` test and it is relatively easy to do.
Radar WebKit Bug Importer
Comment 2 2024-10-17 01:31:13 PDT
Note You need to log in before you can comment on or make changes to this bug.