tor-browser

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

line-clamp-013.tentative.html (907B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: when clamping by lines, clamped block descendent heights are respected</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/line-clamp-013-ref.html">
      7 <meta name="assert" content="when line-clamp is used with a number of lines, if the clamp happens inside a block descendent with a set height, that height will be respected">
      8 <style>
      9 .clamp {
     10  line-clamp: 4;
     11  font: 16px / 32px serif;
     12  padding: 4px;
     13  white-space: pre;
     14  background-color: yellow;
     15  border: 2px solid black;
     16 }
     17 .inner {
     18  background-color: skyblue;
     19  height: 3lh;
     20  padding: 4px;
     21  border: 2px solid purple;
     22 }
     23 </style>
     24 <div class="clamp">Line 1
     25 Line 2<div class="inner">Line 3
     26 Line 4
     27 Line 5
     28 Line 6</div></div>
     29 <p>Following content.</p>