white-space-pre-wrap-justify-001.html (754B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <title>CSS Text test: justification with white-space:pre-wrap</title> 4 <link rel="author" title="Jonathan Kew" href="jkew@mozilla.com"> 5 <link rel="help" href="https://www.w3.org/TR/css-text-3/#text-align-property"> 6 <link rel="match" href="reference/white-space-pre-wrap-justify-001-ref.html"> 7 8 <style> 9 div { 10 border: 1px solid gray; 11 font: 22px monospace; 12 width: 22ch; 13 margin: 1em; 14 } 15 .test { 16 white-space: pre-wrap; 17 text-align: justify; 18 } 19 .ref { 20 white-space: normal; 21 text-align: justify; 22 } 23 </style> 24 25 <p>Test passes if the two blocks are rendered identically</p> 26 27 <div class=test>one two three four five six seven eight nine ten</div> 28 29 <div class=ref>one two three four five six seven eight nine ten</div>