<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Refactor layout functions to avoid using flexbox in MathML"
   href="https://bugs.webkit.org/show_bug.cgi?id=153991#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Refactor layout functions to avoid using flexbox in MathML"
   href="https://bugs.webkit.org/show_bug.cgi?id=153991">bug 153991</a>
              from <span class="vcard"><a class="email" href="mailto:fred.wang&#64;free.fr" title="Frédéric Wang (:fredw) &lt;fred.wang&#64;free.fr&gt;"> <span class="fn">Frédéric Wang (:fredw)</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=270869&amp;action=diff" name="attach_270869" title="Patch">attachment 270869</a> <a href="attachment.cgi?id=270869&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=270869&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=270869&amp;action=review</a>

<span class="quote">&gt; LayoutTests/TestExpectations:860
&gt; +mathml/presentation/foreign-mi-dynamic.html [ Skip ]</span >

So I verified that one. In the test, you have some &lt;mi&gt;x&lt;/mi&gt; and try to append some &lt;span&gt; inside it. MathMLTextElement::childrenChanged is called, but the renderer for the &lt;span&gt; does not seem to be attached yet when RenderMathMLToken::updateStyle is called and so WebKit still thinks it has to use italic. Moreover, MathMLTextElement::didAttachRenderers is not called and so italic style is not removed either ; maybe this is because the children of the token element are wrapped inside an anonymous RenderBlock. 

I've fixed that on the MathMLLayout-bis branch by delaying the determination of when mathvariant=italic applies as well as the selection of the italic glyph to use. I'm not sure that can easily be done without the refactoring of RenderMathMLToken to remove anonymous node/style, so indeed it seems sensible to skip it at this point.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>