tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

white-space-pre-wrap-justify-003.html (812B)


      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-003-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
     28   four  five  six  seven  eight  nine  ten</div>
     29 
     30 <div class=ref>one two&nbsp; three<br>&nbsp; &nbsp;four&nbsp; five&nbsp; six seven &nbsp; eight &nbsp; nine ten</div>