blob: 7b134873df073e1bdad21fbb7c4e983809bc308b [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<title>white-space normal: zero width non-breaking space</title>
<script src="../../../resources/ahem.js"></script>
<style type="text/css">
/* setup */
.control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
td * { white-space: normal; font: inherit; }
div { display: block; }
span { display: inline; }
/* test */
td { font: 20px/1 Ahem; color: maroon; background: red; padding: 0; }
span { background: lime; }
div { color: green; }
</style>
</head>
<body>
<div class="control">Ahem_font_required_for_this_test.</div>
<p>There should be no red below, only a green square bordered in green.</p>
<!-- U+00A0 is exactly equivalent to U+200B U+0020 U+200B -->
<table>
<tr>
<td>
<div>XXXXX</div>
<div><span>X&#x00A0;&#x00A0;&#x00A0;X</span></div>
<div><span>X&#x200B; &#x200B; &#x200B; &#x200B;X</span></div>
<div><span>X &#x200B; &#x200B; X</span></div>
<div>XXXXX</div>
</td>
</tr>
</table>
</body>
</html>