block-ellipsis-012.html (921B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Overflow: the ellipsis can be placed in the last line of an inline formatting context</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-012-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. However, there can be one after the last line in an IFC, if there is content after it."> 8 <style> 9 .clamp { 10 line-clamp: 1; 11 width: 38.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>This line should have an ellipsis here</p> 21 <p>After all, it is not the last line in the line-clamp container</p> 22 </div>