tor-browser

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

line-clamp-auto-011.html (754B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: `line-clamp: auto` with max-height of zero</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-011-ref.html">
      7 <meta name="assert" content="When line-clamp: auto is used with max-height: 0, it should not show any lines and its content box's intrinsic size should be zero">
      8 <style>
      9 .clamp {
     10  line-clamp: auto;
     11  max-height: 0;
     12  font: 16px / 32px serif;
     13  white-space: pre;
     14  background-color: yellow;
     15  border: 1px solid black;
     16  padding: 4px;
     17 }
     18 </style>
     19 <div class="clamp">Line 1
     20 Line 2
     21 Line 3
     22 Line 4</div>
     23 <p>Following content.</p>