tor-browser

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

break-spaces-tab-005.html (897B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text level 3 Test: break-space tabs don't hang</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/break-spaces-tab-005-ref.html">
      7 <meta name="assert" content="a sequence of break-spaces tabs at the end of a line does not hang.">
      8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      9 <style>
     10 div {
     11  font: 20px/1 Ahem;
     12 }
     13 #test {
     14  white-space: break-spaces;
     15  color: green;
     16  width: 2ch;
     17 }
     18 #ref {
     19  white-space: pre;
     20  width: 2ch;
     21  background: red;
     22  color: green;
     23  position: absolute;
     24  z-index:-1;
     25 }
     26 </style>
     27 
     28 <p>Test passes if there is a green rectangle and no red.
     29 <div id=ref> X<br> X<br>XX<br>XX<br>XX<br>XX<br>  </div>
     30 <div id=test>X<wbr>X&#x09;&#x09;&#x09;&#x09;&#x09;XX</div>