tor-browser

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

line-clamp-037.html (999B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: a phantom line box after the last non-phantom line box in a container doesn't introduce a clamp point</title>
      4 <link rel="author" title="Andreu Botella" href="mailto:abotella@igalia.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-overflow-4/#line-clamp">
      6 <link rel="help" href="https://drafts.csswg.org/css-inline-3/#invisible-line-boxes">
      7 <link rel="match" href="reference/webkit-line-clamp-001-ref.html">
      8 <meta name="assert" content="Phantom line boxes are defined to be treated as not existing for any layout or rendering purpose other than determining the positions of any descendant, so if a regular line box is followed by a phantom line box, there's not a clamp point between them.">
      9 <style>
     10 .clamp {
     11  line-clamp: 5;
     12  font: 16px / 32px serif;
     13  background-color: yellow;
     14 }
     15 </style>
     16 <div class="clamp">
     17  Line 1 <br>
     18  Line 2 <br>
     19  Line 3 <br>
     20  Line 4 <br>
     21  Line 5 <br>
     22  <span></span> <!-- phantom line box -->
     23 </div>