tor-browser

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

line-clamp-006.html (698B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: line-clamp with same-BFC block children</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-010-ref.html">
      7 <meta name="assert" content="line-clamp should count lines in same-BFC block children">
      8 <style>
      9 .clamp {
     10  line-clamp: 5;
     11  font: 16px / 32px serif;
     12  white-space: pre;
     13  padding: 0 4px;
     14  background-color: yellow;
     15 }
     16 .child {
     17  font: 24px / 48px serif;
     18  color: blue;
     19 }
     20 </style>
     21 <div class="clamp">Line 1
     22 Line 2<div class="child">Line 3
     23 Line 4</div>Line 5
     24 Line 6</div>