tor-browser

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

block-ellipsis-025.html (839B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: no-ellipsis when there's not enough room</title>
      4 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
      5 <link rel="help" href="https://drafts.csswg.org/css-overflow-4/#block-ellipsis">
      6 <link rel="match" href="reference/block-ellipsis-025-ref.html">
      7 <meta name="assert" content="the block overflow ellipsis displaces text, taking soft wrap opportunities into account. This may result in the entire line being displaced, and just the ellipsis being left.">
      8 <style>
      9 .clamp {
     10  line-clamp: 4;
     11  width: 32.5ch;
     12  font-family: monospace;
     13 }
     14 </style>
     15 <div class="clamp">
     16  Test passes if there are 4 lines
     17  and the last one only contains …
     18  supercalifragilisticexpialidocious
     19  supercalifragilisticexpialidocious
     20  Test fails: this should not be visible
     21 </div>