tor-browser

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

line-clamp-auto-027.tentative.html (708B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: `line-clamp: auto` accounts for margin</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-auto-027-ref.html">
      7 <meta name="assert" content="With `line-clamp: auto`, if a clamp point might fall inside a box, its margins are accounted for.">
      8 <style>
      9 .clamp {
     10  line-clamp: auto;
     11  max-height: 6lh;
     12  font: 16px / 32px serif;
     13  white-space: pre;
     14  background-color: yellow;
     15 }
     16 .clamp > div {
     17  margin: 17px;
     18 }
     19 </style>
     20 <div class="clamp"><div>Line 1
     21 Line 2
     22 Line 3
     23 Line 4
     24 Line 5
     25 Line 6</div></div>