tor-browser

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

webkit-line-clamp-015.html (940B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: -webkit-line-clamp on vertical writing mode flex item when -webkit-box-orient:horizontal</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-015-ref.html">
      7 <meta name="assert" content="-webkit-line-clamp should not apply to a -webkit-box-orient:horizontal flex item even if using a vertical writing mode.">
      8 <style>
      9 .clamp {
     10  display: -webkit-box;
     11  -webkit-box-orient: horizontal;
     12  -webkit-line-clamp: 2;
     13  font: 16px / 32px serif;
     14  white-space: pre;
     15  padding: 4px 0;
     16  background-color: yellow;
     17  overflow: hidden; /* can be removed once implementations update their old -webkit-line-clamp implementations */
     18  writing-mode: vertical-rl;
     19 }
     20 </style>
     21 <div class="clamp">Line 1
     22 Line 2
     23 Line 3
     24 Line 4
     25 Line 5</div>