white-space-control-characters-001

White-space and non white space control characters

WeasyPrint

This browser

Flags
ahem
Assertion
White space processing model does not affect non white space control characters, in this case the 'Start of string' character.

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: White-space and non white space control characters</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#ctrlchars">
 7         <meta name="flags" content="ahem">
 8         <meta name="assert" content="White space processing model does not affect non white space control characters, in this case the 'Start of string' character.">
 9         <style type="text/css">
10             div
11             {
12                 font: 20px/1 Ahem;
13             }
14             #div1
15             {
16                 white-space: normal;
17             }
18             span
19             {
20                 background: black;
21             }
22             #div2
23             {
24                 background: blue;
25                 height: 1em;
26                 width: 5em;
27             }
28         </style>
29     </head>
30     <body>
31         <p>Test passes if the black box is the same width or wider than the blue box.</p>
32         <div id="div1"><span>X ˜ XX</span></div>
33         <div id="div2"></div>
34     </body>
35 </html>