tor-browser

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

webkit-line-clamp-031.html (1005B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: -webkit-line-clamp and a line with inlines of different heights</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-031-ref.html">
      7 <meta name="assert" content="-webkit-line-clamp should clamp to the bottom of the line box.">
      8 <style>
      9 .clamp {
     10  display: -webkit-box;
     11  -webkit-box-orient: vertical;
     12  -webkit-line-clamp: 3;
     13  font: 16px / 32px serif;
     14  white-space: pre;
     15  padding: 0 4px;
     16  background-color: yellow;
     17  overflow: hidden; /* can be removed once implementations update their old -webkit-line-clamp implementations */
     18 }
     19 .big {
     20  font-weight: bold;
     21  border-top: 2px solid blue;
     22  border-bottom: 2px solid blue;
     23  padding: 20px 0;
     24 }
     25 </style>
     26 <div class="clamp"><div>Line 1
     27 Line 2
     28 Line 3 <span class="big">BIG</span>
     29 Line 4
     30 Line 5</div></div>
     31 <p>Following content.</p>