tor-browser

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

pre-wrap-019.html (979B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text level 3 Test: trailing pre-wrap spaces and hanging</title>
      4 <link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
      5 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
      6 <link rel="match" href="reference/pre-wrap-019-ref.html">
      7 <meta name="assert" content="trailing pre-wrap spaces hang at soft-wrapped lines, and hang conditionally before forced breaks.">
      8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      9 <style>
     10 div {
     11  font-size: 2rem;
     12  font-family: Ahem;
     13  width: 3ch;
     14 }
     15 #test1, #test2 {
     16  white-space: pre-wrap;
     17  color: green;
     18 }
     19 #test2 {
     20  text-align: right;
     21 }
     22 
     23 .ref {
     24  white-space: pre;
     25  color: red;
     26  position: absolute;
     27  z-index: -1;
     28 }
     29 
     30 </style>
     31 
     32 <p>Test passes if there are green squares below and no red.
     33 
     34 <div class=ref> 0 <br>0 0 <br>0 </div>
     35 <div id=test1> 0 0 0 0 </div>
     36 
     37 <div class=ref>  0<br>0 0 <br> 0</div>
     38 <div id=test2> 0 0 0 0 </div>