<?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>278533</bug_id>
          
          <creation_ts>2024-08-22 12:03:18 -0700</creation_ts>
          <short_desc>Implement `display: math`</short_desc>
          <delta_ts>2024-09-19 07:03:31 -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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>195797</blocked>
    
    <blocked>279978</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Harry Chen">harpsichen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>fred.wang</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2054759</commentid>
    <comment_count>0</comment_count>
    <who name="Harry Chen">harpsichen</who>
    <bug_when>2024-08-22 12:03:18 -0700</bug_when>
    <thetext>From the spec: https://w3c.github.io/mathml-core/#new-display-math-value

Currently, WebKit fails these associated WPT tests: https://wpt.fyi/results/css/css-display/display-math-on-non-mathml-elements.html?label=master&amp;label=experimental&amp;aligned&amp;q=mathml

I don&apos;t believe there&apos;s currently a bug for this, and a lot of places in the spec also rely on the computed display property being equal to `block math` or `inline math` -- e.g. here with mtext (https://w3c.github.io/mathml-core/#layout-of-mtext):

&gt; If the element does not have its computed display property equal to block math or inline math then it is laid out according to the CSS specification where the corresponding value is described.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2056338</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-08-29 12:04:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/134955628&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>