Files
servo/tests/wpt/css-tests/css21_dev/xhtml1/first-letter-space-not-selected.xht

27 lines
1.2 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>
<title>CSS Test: ::first-letter - spaces should not be selected</title>
<link href="mailto:emalasky@adobe.com" rel="author" title="Ethan Malasky" />
<link href="http://www.w3.org/TR/CSS21/selector.html#first-letter" rel="help" />
<link href="reference/first-letter-space-not-selected-ref.xht" rel="match" />
<meta content="::first-letter should not include initial spaces. Test non-breaking space, em space, en space, and thin space, both alone and preceeding a real letter." name="assert" />
<style type="text/css">
.test::first-letter {
background: red;
font-size: 3em;
}
</style>
</head>
<body>
<p>Test passes if there is no red.</p>
<div class="test">&#xA0;</div>
<div class="test">&#xA0;A</div>
<div class="test">&#x2002;</div>
<div class="test">&#x2002;B</div>
<div class="test">&#x2003;</div>
<div class="test">&#x2003;C</div>
<div class="test">&#x2009;</div>
<div class="test">&#x2009;D</div>
</body></html>