tor-browser

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

line-clamp-balance-001.html (724B)


      1 <!DOCTYPE html>
      2 <html>
      3 <meta charset="utf-8">
      4 <title>CSS Overflow: `line-clamp` and text-wrap: balance</title>
      5 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
      6 <link rel="help" href="https://drafts.csswg.org/css-overflow-4/#line-clamp">
      7 <link rel="match" href="reference/line-clamp-balance-001-ref.html">
      8 <meta name="assert" content="Checks that balancing happens after clamping, not before.">
      9 <style>
     10 .clamp {
     11  line-clamp: 2;
     12  font-family: monospace;
     13  width: 8.1ch; /* the extra .1 is just in case the … character isn't perfectly monospaced. */
     14  text-wrap: balance;
     15 }
     16 </style>
     17 <p>Test passes if you see numbers up to 8 (and no further) below.
     18 
     19 <div class="clamp">
     20 1 2 3 4 5 6 7 8 9
     21 </div>