tor-browser

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

line-clamp-015.html (704B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: line-clamp applies to inline blocks</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-015-ref.html">
      7 <meta name="assert" content="line-clamp affects block containers, which includes inline blocks">
      8 <style>
      9 .clamp {
     10  display: inline-block;
     11  line-clamp: 3;
     12  font: 16px / 32px monospace;
     13  white-space: pre;
     14  padding: 0 4px;
     15  width: 7.01ch;
     16  background-color: yellow;
     17 }
     18 </style>
     19 Before <div class="clamp">Line 1
     20 Line 2
     21 Line 3
     22 Line 4
     23 Line 5</div> After</div>
     24 <p>Following content.</p>