tor-browser

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

tab-size-inline-002.html (1031B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text level 3 Test: inline box tab-size tab stops</title>
      4 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
      5 <link rel="help" href="https://drafts.csswg.org/css-text-3/#tab-size-property">
      6 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
      7 <link rel="match" href="tab-size-inline-002-ref.html">
      8 <meta name="assert" content="tab-stops are calculated separatey for each tab with a different tab-size, not stacked up somehow">
      9 <style>
     10 div {
     11    font-family: monospace;
     12    white-space: pre;
     13    tab-size: 10;
     14    font-size: 2em;
     15 }
     16 span {
     17    tab-size: 4;
     18 }
     19 .wrong { color: orange; }
     20 .right { color: blue; }
     21 </style>
     22 
     23 <p>Test passes if the black “A” lines up vertically with the blue one, not the orange one.
     24 
     25 <div>&#x09;<span>&#x09;A</span></div>
     26 
     27 <div class=right>            A</div> <!-- 12 = n * 4, such with n such that n*4 > 10 -->
     28 <div class=wrong>              A</div> <!-- 14 = 10 + 4 -->