tor-browser

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

line-clamp-auto-010.html (774B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: `text-overflow: ellipsis` and unconstrained `line-clamp: auto`</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-037-ref.html">
      7 <meta name="assert" content="text-overflow: ellipsis does apply in a line-clamp: auto context, even if it doesn't have a max-height">
      8 <style>
      9 .clamp {
     10  width: 15.1ch;
     11  font: 16px / 32px monospace;
     12  background-color: yellow;
     13  padding: 4px;
     14  line-clamp: auto;
     15  overflow: hidden;
     16  text-overflow: ellipsis;
     17 }
     18 </style>
     19 <div class="clamp">
     20  supercalifragilisticexpialidocious
     21  supercalifragilisticexpialidocious
     22 </div>