<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] &quot;-webkit-line-box-contain: glyphs replaced&quot; sets height of arabic glyphs to zero"
   href="https://bugs.webkit.org/show_bug.cgi?id=156841">156841</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[GTK] &quot;-webkit-line-box-contain: glyphs replaced&quot; sets height of arabic glyphs to zero
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Text
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>fred.wang&#64;free.fr
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>alex&#64;igalia.com, mmaxfield&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=276904" name="attach_276904" title="testcase">attachment 276904</a> <a href="attachment.cgi?id=276904&amp;action=edit" title="testcase">[details]</a></span>
testcase

This was discussed in <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Refactor RenderMathMLRow layout functions to avoid using flexbox"
   href="show_bug.cgi?id=153208">bug 153208</a>. In the attached testcase:

1) green background is used for arabic and latin text.
2) red background is used for arabic and latin text, using &quot;-webkit-line-box-contain: glyphs replaced&quot;
3) blue background is used for arabic and latin text in a MathML &lt;mi&gt; element (which currently uses &quot;-webkit-line-box-contain: glyphs replaced&quot;, see <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Find a replacement for -webkit-line-box-contain in mathml.css"
   href="show_bug.cgi?id=151592">bug 151592</a>)

This works correctly for latin, but the background of Arabic text does not appear because the height of the calculated bounding box is incorrect. After <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Refactor RenderMathMLRow layout functions to avoid using flexbox"
   href="show_bug.cgi?id=153208">bug 153208</a>, MathML uses this exact bounding box for the layout and so Arabic text no longer appears.

I was able to reproduce this problem on GTK but this works correctly on Mac, so I guess it is specific to the Linux graphics backend.</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>