word-spacing-negative-value-001.html (808B)
1 <!DOCTYPE html> 2 3 <meta charset="UTF-8"> 4 5 <title>CSS Text Test: 'word-spacing' value may be negative (basic)</title> 6 7 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> 8 <link rel="help" href="https://www.w3.org/TR/css-text-3/#word-spacing-property"> 9 <link rel="match" href="reference/ref-filled-green-100px-square.xht"> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> 11 12 <meta content="may" name="flags"> 13 14 <style> 15 div 16 { 17 background-color: red; 18 color: green; 19 font-family: Ahem; 20 font-size: 50px; 21 line-height: 1; 22 width: 2em; 23 word-spacing: -1em; 24 } 25 </style> 26 27 <p>Test passes if there is a filled green square and <strong>no red</strong>. 28 29 <div>T E</div> 30 31 <div>S T</div>