tor-browser

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

line-clamp-auto-033.html (841B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: `line-clamp: auto` will not clamp inside IFC</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="match" href="reference/webkit-line-clamp-005-ref.html">
      7 <meta name="assert" content="With `line-clamp: auto`, there cannot be any clamp points inside IFCs. So if the max-height offset falls inside an IFC, the clamp would be before the IFC.">
      8 <style>
      9 .clamp {
     10  line-clamp: auto;
     11  max-height: 6lh;
     12  font: 16px / 32px serif;
     13  white-space: pre;
     14  padding: 0 4px;
     15  background-color: yellow;
     16 }
     17 .ifc {
     18  display: flow-root;
     19  background-color: red;
     20 }
     21 </style>
     22 
     23 <div class="clamp">Line 1
     24 Line 2
     25 Line 3
     26 Line 4
     27 <div class="ifc">Line 5
     28 Line 6
     29 Line 7</div>
     30 Line 8</div>