tor-browser

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

line-clamp-with-floats-006.tentative.html (925B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: float in line-clamp before clamp point which extends past it</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/line-clamp-with-floats-006-ref.html">
      7 <meta name="assert" content="Floats in a block formatting context inside a line-clamp container are not hidden if they come before the clamp point, even if they extend beyond that point">
      8 <style>
      9 .clamp {
     10  line-clamp: 4;
     11  font: 16px / 32px serif;
     12  padding: 0 4px;
     13  background-color: yellow;
     14 }
     15 .float {
     16  float: left;
     17  width: 50px;
     18  height: 75px;
     19  margin: 4px;
     20  background-color: skyblue;
     21 }
     22 .pre {
     23  white-space: pre;
     24 }
     25 </style>
     26 <div class="clamp">
     27 <div class="pre">Line 1
     28 Line 2
     29 Line 3</div>
     30 <div class="float"></div>
     31 <div class="pre">Line 4
     32 Line 5</div>
     33 </div>