<?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>281210</bug_id>
          
          <creation_ts>2024-10-10 01:46:09 -0700</creation_ts>
          <short_desc>Ignore legacy mstyle attributes (background, color, fontsize, fontstyle, fontweight) when CoreMathML is enabled</short_desc>
          <delta_ts>2025-09-29 17:08:20 -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>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>281206</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Frédéric Wang Nélar">fred.wang</reporter>
          <assigned_to name="Ahmad Saleem">ahmad.saleem792</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>eri</cc>
    
    <cc>harpsichen</cc>
    
    <cc>karlcow</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2066839</commentid>
    <comment_count>0</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2024-10-10 01:46:09 -0700</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2066861</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-10-10 04:00:21 -0700</bug_when>
    <thetext>Yes - I tested this yesterday and deleting them make us pass below WPT.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2068709</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-10-17 01:47:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/138099409&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2068983</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-10-17 18:57:38 -0700</bug_when>
    <thetext>I am assigning it to myself to do draft PR to get feedback.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2146705</commentid>
    <comment_count>4</comment_count>
    <who name="Eri">eri</who>
    <bug_when>2025-09-29 03:03:40 -0700</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2146995</commentid>
    <comment_count>5</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2025-09-29 17:08:20 -0700</bug_when>
    <thetext>Thanks Eri.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>