tor-browser

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

line-clamp-030.html (830B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: line-clamp and block-in-inline</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="Lines within same-BFC block-in-inlines count for line clamping, and a line clamp can happen inside one. If there is an invisible line box between two block-in-inlines, that does not count.">
      8 <style>
      9 .clamp {
     10  line-clamp: 4;
     11  font: 16px / 32px serif;
     12  background-color: yellow;
     13  padding: 0 4px;
     14 }
     15 </style>
     16 <div class="clamp">
     17  <span>
     18    Line 1
     19    <div>
     20      Line 2 <br>
     21      Line 3
     22    </div>
     23    <div>
     24      Line 4 <br>
     25      Line 5
     26    </div>
     27    Line 6
     28  </span>
     29 </div>