<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>281206</bug_id>
          
          <creation_ts>2024-10-10 01:30:03 -0700</creation_ts>
          <short_desc>Disable some legacy MathML attributes and values on all ports</short_desc>
          <delta_ts>2024-10-17 01:31:13 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>MathML</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>196142</dependson>
    
    <dependson>197493</dependson>
    
    <dependson>197494</dependson>
    
    <dependson>197495</dependson>
    
    <dependson>281208</dependson>
    
    <dependson>281210</dependson>
          <blocked>195797</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Frédéric Wang Nélar">fred.wang</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>karlcow</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2066831</commentid>
    <comment_count>0</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2024-10-10 01:30:03 -0700</bug_when>
    <thetext>The following legacy features are implemented in WebKit but are not available in any other browser for a while:

- numalign/denomalign attributes (*)
- mfrac&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2066862</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-10-10 04:02:22 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2068707</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-10-17 01:31:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/138098857&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>