tor-browser

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

line-clamp-038.html (1152B)


      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. This is also the case if the phantom line box is created as a result of block-in-inline splitting.">
      9 <style>
     10 .clamp {
     11  line-clamp: 5;
     12  font: 16px / 32px serif;
     13  background-color: yellow;
     14 }
     15 .clamp p {
     16  margin: 0;
     17 }
     18 </style>
     19 <div class="clamp">
     20  <span>
     21    <div>
     22      <p>Line 1</p>
     23      <p>Line 2</p>
     24      <p>Line 3</p>
     25      <p>Line 4</p>
     26      <p>Line 5</p>
     27    </div>
     28  </span>
     29 </div>