tor-browser

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

line-clamp-031.html (828B)


      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="Block-in-inlines after the clamp point should not be painted, whether they are same-BFC or not.">
      8 <style>
      9 .clamp {
     10  line-clamp: 4;
     11  font: 16px / 32px serif;
     12  background-color: yellow;
     13  padding: 0 4px;
     14 }
     15 .red {
     16  height: 1.5lh;
     17  background-color: red;
     18 }
     19 .ifc {
     20  display: flow-root;
     21 }
     22 </style>
     23 <div class="clamp">
     24  <span>
     25    Line 1 <br>
     26    Line 2 <br>
     27    Line 3 <br>
     28    Line 4 <br>
     29    Line 5
     30    <div class="red"></div>
     31    <div class="red ifc"></div>
     32  </span>
     33 </div>