servo/tests/wpt/css-tests/css-text-3_dev/html/white-space-collapsing-discard-001.htm

33 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 HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: white-space-collapsing - discard - basic cases</title>
<link rel="author" title="Satoshi Umehara" href="mailto:umehara@est.co.jp">
<link rel="help" title="CSS Text Level 3: 4.1. White Space Collapsing: the white-space-collapsing property" href="http://www.w3.org/TR/css-text-3/#white-space-collapsing">
<link rel="match" href="reference/white-space-collapsing-discard-001-ref.htm">
<meta name="flags" content="">
<meta name="assert" content="The UA should discard all white space in the element when white-space-collapsing is set to discard.">
<style type="text/css">
.test span {
white-space-collapsing: discard;
}
/* the CSS below is not part of the test */
span {
color: Blue;
}
</style>
</head>
<body>
<p>
Test passes if the first sentence matches the second one.
</p>
<div class="test">
<span>All White Space In The Element Should Be Discarded.</span>
</div>
<div class="control">
<span>AllWhiteSpaceInTheElementShouldBeDiscarded.</span>
</div>
</body>
</html>