tor-browser

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

line-clamp-008.html (868B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Overflow: line-clamp hides lines and in-flow boxes after the clamp point</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 <meta name="assert" content="line-clamp should hide lines and in-flow boxes after the clamp point">
      8 <style>
      9 .clamp {
     10  line-clamp: 4;
     11  font: 16px / 32px serif;
     12  padding: 0 4px;
     13  background-color: yellow;
     14 }
     15 .pre {
     16  white-space: pre;
     17 }
     18 .red {
     19  background-color: red;
     20 }
     21 </style>
     22 <div class="clamp">
     23 <div class="pre">Line 1
     24 Line 2
     25 Line 3
     26 Line 4
     27 Line 5</div>
     28 
     29 <div class="red">Test</div>
     30 
     31 <table class="red">
     32  <tr>
     33    <td>A</td>
     34    <td>B</td>
     35  </tr>
     36  <tr>
     37    <td>C</td>
     38    <td>D</td>
     39  </tr>
     40 </table>
     41 
     42 </div>