<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] "-webkit-line-box-contain: glyphs replaced" 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] "-webkit-line-box-contain: glyphs replaced" 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@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>fred.wang@free.fr
</td>
</tr>
<tr>
<th>CC</th>
<td>alex@igalia.com, mmaxfield@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&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 "-webkit-line-box-contain: glyphs replaced"
3) blue background is used for arabic and latin text in a MathML <mi> element (which currently uses "-webkit-line-box-contain: glyphs replaced", 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>