tor-browser

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

line-clamp-with-floats-003.tentative.html (805B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: float in line-clamp after clamp point</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="Floats in an inline formatting context inside a line-clamp container are always hidden if they come after the clamp point.">
      8 <style>
      9 .clamp {
     10  line-clamp: 4;
     11  font: 16px / 32px serif;
     12  padding: 0 4px;
     13  white-space: pre;
     14  background-color: yellow;
     15 }
     16 .float {
     17  float: left;
     18  width: 50px;
     19  height: 50px;
     20  margin: 4px;
     21  background-color: skyblue;
     22 }
     23 </style>
     24 <div class="clamp">Line 1
     25 Line 2
     26 Line 3
     27 Line 4
     28 <div class="float"></div>Line 5</div>