tor-browser

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

line-clamp-007.html (741B)


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