<?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>179739</bug_id>
          
          <creation_ts>2017-11-15 11:16:55 -0800</creation_ts>
          <short_desc>Consistent handling of out-of-flow children in MathML layout functions</short_desc>
          <delta_ts>2024-09-25 09:49:15 -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>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=123348</see_also>
          <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>
          <dependson>178865</dependson>
    
    <dependson>276026</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>rego</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1372038</commentid>
    <comment_count>0</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2017-11-15 11:16:55 -0800</bug_when>
    <thetext>Extracted from bug 178865.

Almost all layout functions in MathML ignore out-of-flow children, except RenderMathMLRow. Consider for example 

      &lt;math&gt;
        &lt;mtext style=&quot;position: absolute; left: 100px; top: 100px;&quot;&gt;A&lt;/mtext&gt;
        &lt;mfrac&gt;
          &lt;mtext style=&quot;position: absolute; left: 100px; top: 100px;&quot;&gt;B&lt;/mtext&gt;
          &lt;mtext&gt;&lt;/mtext&gt;
        &lt;/mfrac&gt;
      &lt;/math&gt;

where A is absolutely positioned but the numerator B is not. It&apos;s not clear whether it&apos;s really an important use cases. Maybe we should add special insertPositionedObject calls in all MathML layout functions to be compatible with the CSS behavior. Or maybe we should remove the special handling in RenderMathMLRow to reduce code complexity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2044661</commentid>
    <comment_count>1</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2024-07-04 03:59:15 -0700</bug_when>
    <thetext>MathML Core should now clearly defines how to handle out-of-flow children, so we should follow that: https://w3c.github.io/mathml-core/

Related to that is bug 123348. MathML 3 defines elements with unexpected number of children as &quot;invalid&quot; (e.g. a fraction with three children). MathML Core essentially says that the child count is based on *in-flow* children and that &quot;invalid&quot; markup should be laid out as an mrow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2050429</commentid>
    <comment_count>2</comment_count>
    <who name="Harry Chen">harpsichen</who>
    <bug_when>2024-08-02 17:23:26 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/31676</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2063046</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-09-25 09:48:48 -0700</bug_when>
    <thetext>Committed 284225@main (7c0a9d18a4e0): &lt;https://commits.webkit.org/284225@main&gt;

Reviewed commits have been landed. Closing PR #31676 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2063047</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-09-25 09:49:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/136683070&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>