Files
servo/tests/wpt/css-tests/css21_dev/xhtml1print/word-spacing-characters-003.xht

86 lines
2.6 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. 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.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Test: word-spacing on Zero-Width Characters</title>
<style type="text/css">
@page { font: italic 8pt sans-serif; color: gray;
margin: 7%;
counter-increment: page;
@top-left { content: "CSS 2.1 Conformance Test Suite"; }
@top-right { content: "Test word-spacing-characters-003"; }
@bottom-right { content: counter(page); }
}
</style>
<link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/text.html#spacing-props"/>
<meta name="flags" content=""/>
<meta name="assert" content="Word-spacing does not affect zero-width characters."/>
<style type="text/css">
div {
margin: 1em;
font-family: monospace;
page-break-inside: avoid;
}
div p {
margin: 0;
}
.control span {
background: blue;
color: blue;
}
.test span {
word-spacing: 4em;
background: orange;
color: orange;
}
.ws-pre p {
white-space: pre;
}
</style>
</head>
<body>
<p>In each of the following pairs, the blue and orange bars must have equal lengths.</p>
<!-- ZERO-WIDTH SPACE -->
<div class="ws-normal">
<p class="control"><span>AB</span></p>
<p class="test"><span>AB</span></p>
</div>
<div class="ws-pre">
<p class="control"><span>AB</span></p>
<p class="test"><span>AB</span></p>
</div>
<!-- ZERO-WIDTH NO-BREAK SPACE -->
<div class="ws-normal">
<p class="control"><span>AB</span></p>
<p class="test"><span>AB</span></p>
</div>
<div class="ws-pre">
<p class="control"><span>AB</span></p>
<p class="test"><span>AB</span></p>
</div>
<!-- ZERO-WIDTH NON-JOINER -->
<div class="ws-normal">
<p class="control"><span>AB</span></p>
<p class="test"><span>AB</span></p>
</div>
<div class="ws-pre">
<p class="control"><span>AB</span></p>
<p class="test"><span>AB</span></p>
</div>
<!-- ZERO-WIDTH JOINER -->
<div class="ws-normal">
<p class="control"><span>AB</span></p>
<p class="test"><span>AB</span></p>
</div>
<div class="ws-pre">
<p class="control"><span>AB</span></p>
<p class="test"><span>AB</span></p>
</div>
</body>
</html>