white-space-pre-001

white-space pre: simple tests

WeasyPrint

This browser

Flags
ahem

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 pre: simple tests</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/text/white-space/pre/001.html" type="text/html">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-model">
 8   <meta name="flags" content="ahem">
 9   <style type="text/css">
10    .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
11    pre { white-space: pre; font: 1em/1 Ahem; background: green; color: lime; }
12   </style>
13  </head>
14  <body>
15   <p>The word PASS must be drawn below, and there must be no red.</p>
16   <table><tr><td>
17    <pre>                     
18  xxxx xxxx xxxx xxxx 
19  x  x x  x x    x    
20  xxxx xxxx xxxx xxxx
21  x    x  x    x    x 
22  x    x  x xxxx xxxx 
23                      </pre>
24   </td></tr></table>
25  </body>
26 </html>