continue-001.html (733B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Overflow: continue basic test</title> 4 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net"> 5 <link rel="help" href="https://drafts.csswg.org/css-overflow-4/#continue"> 6 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/12667"> 7 <link rel="match" href="reference/continue-001-ref.html"> 8 <meta name="assert" content="Continue:collapse should cause excess content to be hidden, without inserting any ellipsis"> 9 <style> 10 .clamp { 11 white-space: pre; 12 continue: collapse; 13 max-height: 3lh; 14 } 15 </style> 16 <p>This test passes if there are 3 lines below, with the 3rd one ending with the digit 3. 17 <div class="clamp">Line 1 18 Line 2 19 Line 3 20 Line 4 21 Line 5</div>