block-ellipsis-011.html (887B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Overflow: the ellipsis is not placed on the last line of the line-clamp container</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/#block-ellipsis"> 6 <link rel="match" href="reference/block-ellipsis-011-ref.html"> 7 <meta name="assert" content="block-ellipsis will insert an ellipsis immediately before a region break, and there can be no region break after the last line of the line-clamp container. If a line would be the last if the ellipsis was not inserted, then it must not be inserted."> 8 <style> 9 .clamp { 10 line-clamp: 2; 11 width: 31.1ch; 12 border: 1px solid black; 13 font-family: monospace; 14 } 15 p { 16 margin: 0; 17 } 18 </style> 19 <div class="clamp"> 20 <p> 21 There should not be an ellipsis 22 at the end of this line of text 23 </p> 24 </div>