word-spacing-003.html (880B)
1 <!DOCTYPE html> 2 <title>CSS Text Test: Word Spacing</title> 3 <link rel="author" title="Minseong Kim" href="mailto:jja08111@gmail.com"> 4 <link rel="help" href="http://www.w3.org/TR/css-text-3/#word-spacing"> 5 <link rel="stylesheet" href="/fonts/ahem.css"> 6 <link rel="match" href="word-spacing-003-ref.html"> 7 <meta name="flags" content="ahem"> 8 <meta name="assert" content="The leading space characters contain word-spacing when white-space: pre."> 9 <style> 10 @font-face { 11 font-family: Ahem; 12 src: url(/fonts/Ahem.ttf); 13 } 14 /* We use Ahem to avoid very minor differences between the test and the 15 reference that occur with certain font+platform combinations. */ 16 div { font-family: Ahem, monospace; font-size: 20px; white-space: pre; } 17 div.ws { word-spacing: 1ch; } 18 </style> 19 <body> 20 <p>Test passes if there is the one rectangle</p> 21 <div class="ws"> a</div> 22 <div> a</div> 23 </body>