tor-browser

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

line-clamp-028.html (907B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: sizing of line-clamp elements with ruby annotations</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-028-ref.html">
      7 <meta name="assert" content="The sizing of a line-clamp element should be exactly as if it had no content after clamp, even if there are ruby annotations involved.">
      8 <style>
      9 .clamp {
     10  line-clamp: 3;
     11  font-size: 16px / 16px serif;
     12  white-space: pre-wrap;
     13  background-color: yellow;
     14  padding-bottom: 1em;
     15 }
     16 ruby.under {
     17  ruby-position: under;
     18 }
     19 .large {
     20  font-size: 3em;
     21 }
     22 </style>
     23 <div class="clamp">Line 1
     24 Line 2
     25 <ruby class="under">Line 3<rt>ruby</ruby>
     26 <ruby>Line 4<rt class="large">ruby</ruby>
     27 Line 5
     28 <ruby class="under">Line 6<rt class="large">ruby</ruby></div>