tor-browser

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

line-clamp-004.html (650B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: sizing of line-clamp affected elements</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-006-ref.html">
      7 <meta name="assert" content="line-clamp should size the element to the clamped number of lines.">
      8 <style>
      9 .clamp {
     10  line-clamp: 4;
     11  font: 16px / 32px serif;
     12  white-space: pre;
     13  padding: 0 4px;
     14  background-color: yellow;
     15 }
     16 </style>
     17 <div class="clamp">Line 1
     18 Line 2
     19 Line 3
     20 Line 4
     21 Line 5</div>
     22 <p>Following content.</p>