white-space-pre-wrap-justify-004.html (801B)
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-004-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 text-align-last: right; 23 } 24 </style> 25 26 <p>Test passes if the two blocks are rendered identically</p> 27 28 <div dir=rtl class=test>one, two, three, 29 four, five, six, seven, eight, nine!</div> 30 31 <div class=ref>,one, two, three<br>four, five, six, !seven, eight, nine</div>