mirror of
https://github.com/servo/servo.git
synced 2025-06-23 08:34:42 +01:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
36 lines
No EOL
1.1 KiB
HTML
36 lines
No EOL
1.1 KiB
HTML
<!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​X</div>
|
||
<div class="fail">X</div>
|
||
</div>
|
||
|
||
|
||
</body></html> |