servo/tests/wpt/css-tests/css-text-3_dev/xhtml1print/line-breaking-001.xht
Ms2ger 296fa2512b Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180.
- Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
2017-02-06 22:38:29 +01:00

36 lines
No EOL
1.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8" />
<title>CSS Text — line breaking around Zero With Space</title>
<meta content="When white-space allows wrapping, line breaking behavior defined for the ZW line-breaking classes in [UAX14] must be honored." name="assert" />
<link href="https://www.w3.org/TR/css-text-3/#line-break-details" rel="help" />
<link href="reference/line-breaking-001-ref.xht" rel="match" />
<link href="http://florian.rivoal.net" rel="author" title="Florian Rivoal" />
<style>
div {
color:green;
width: 1em;
line-height: 1em;
font-family: ahem;
white-space: normal;
font-size: 20px;
}
.container {
position: relative;
}
.fail {
color: red;
position: absolute;
left: 0;
top: 1em;
z-index: -1;
}
</style>
</head><body>
<p>There should be a green rectangle and no red.</p>
<div class="container">
<div>X&#x200B;X</div>
<div class="fail">X</div>
</div>
</body></html>