white-space-pre-007

white-space and word-spacing

WeasyPrint

This browser

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html lang="en"> <!-- See also http://www.hixie.ch/tests/adhoc/css/text/word-spacing/001.html -->
 3  <head>
 4   <title>CSS Test: white-space and word-spacing</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/007.html" type="text/html">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-model">
 8   <style type="text/css">
 9     p { word-spacing: 0.1em; white-space: pre; }
10   </style>
11  </head>
12  <body>
13   <p>There should be two lines below.</p>
14   <p>This test has:
15 PASSED</p>
16  </body>
17 </html>