tor-browser

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

line-clamp-with-text-overflow-string-001.html (763B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: line-clamp with text-overflow: <string></title>
      4 <link rel="author" title="Minseong Kim" href="mailto:jja08111@gmail.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 <meta name="assert" content="line-clamp should clamp with default ellipsis even if text-overflow has string value">
      8 <style>
      9 .clamp {
     10  display: -webkit-box;
     11  -webkit-box-orient: vertical;
     12  -webkit-line-clamp: 4;
     13  line-clamp: 4;
     14  font: 16px / 32px serif;
     15  white-space: pre;
     16  background-color: yellow;
     17  padding: 0 4px;
     18  text-overflow: "-";
     19  overflow: hidden;
     20 }
     21 </style>
     22 <div class="clamp">Line 1
     23 Line 2
     24 Line 3
     25 Line 4
     26 Line 5</div>