tor-browser

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

tab-stop-threshold-004.html (1105B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text level 3 Test: the nearest tab stop is less than 0.5 ch away, white-space:pre-wrap</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="help" href="https://drafts.csswg.org/css-text-3/#tab-size-property">
      7 <link rel="match" href="reference/tab-stop-threshold-002-ref.html">
      8 <meta name="assert" content="A preserved tab pushes to the tab stop after the nearest one as long as we're closer to the nearest one than 0.5ch, under white-space:pre-wrap.">
      9 <style>
     10 div {
     11  white-space: pre-wrap;
     12  font-family: monospace;
     13  tab-size: 8; /* the initial value, but since we're measuring against it, we might as well be sure */
     14 }
     15 span { display: inline-block; }
     16 #s1 { width: 7.6ch; }
     17 #s2 { width: 7.8ch; }
     18 #s3 { width: 7.9ch; }
     19 </style>
     20 
     21 <p>Test passes if the 4 letters bellow are vertically aligned.
     22 <div><span id=s1></span>&#9;P</div>
     23 <div><span id=s2></span>&#9;A</div>
     24 <div><span id=s3></span>&#9;S</div>
     25 <div>                S</div>