tor-browser

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

line-clamp-auto-with-ruby-002.html (811B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: `line-clamp: auto` with ruby</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/webkit-line-clamp-005-ref.html">
      7 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      8 <meta name="assert" content="A line-over ellipsis on the first line after clamp should not show through the previous line's leading.">
      9 <style>
     10 .clamp {
     11  line-clamp: auto;
     12  max-height: 4lh;
     13  font: 16px / 32px serif;
     14  white-space: pre;
     15  background-color: yellow;
     16  padding: 0 4px;
     17 }
     18 rt {
     19  font: 16px / 32px Ahem;
     20  color: red;
     21 }
     22 </style>
     23 
     24 <div class="clamp">Line 1
     25 Line 2
     26 Line 3
     27 Line 4
     28 <ruby>Line 5<rt>X</ruby>
     29 Line 6</div>