tor-browser

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

webkit-line-clamp-002.html (691B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: -webkit-line-clamp when not -webkit-box-orient:vertical</title>
      4 <link rel="author" title="Cameron McCormack" href="mailto:cam@mcc.id.au">
      5 <link rel="help" href="https://drafts.csswg.org/css-overflow-3/#webkit-line-clamp">
      6 <link rel="match" href="reference/webkit-line-clamp-001-ref.html">
      7 <meta name="assert" content="-webkit-line-clamp should not apply to an element whose parent is not -webkit-box-orient:vertical.">
      8 <style>
      9 .clamp {
     10  display: -webkit-box;
     11  -webkit-line-clamp: 3;
     12  font: 16px / 32px serif;
     13  white-space: pre;
     14  background-color: yellow;
     15 }
     16 </style>
     17 <div class="clamp">Line 1
     18 Line 2
     19 Line 3
     20 Line 4
     21 Line 5</div>