core-syntax-009

Syntactic White Space

WeasyPrint

This browser

Assertion
Only the characters U+0020, U+0009, U+000A, U+000D, and U+000C are considered white space.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3  <head>
 4   <title>CSS Test: Syntactic White Space</title>
 5   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/">
 6   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#tokenization">
 7   <meta name="assert" content="Only the characters U+0020, U+0009, U+000A,     U+000D, and U+000C are considered white space.">
 8   <style type="text/css">
 9     @import "support/core-syntax-009.css";
10     divp { color: red; }
11     divp { color: red; }
12     divp { color: red; }
13     div p { color: red; }
14     divp { color: red; }
15     divp { color: red; }
16     div p { color: red; }
17     divp { color: red; }
18   </style>
19 
20  </head>
21  <body>
22   <div>
23    <p>This sentence must be green.</p>
24   </div>
25  </body>
26 </html>