block-ellipsis-001.html (944B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Overflow: the line-clamp ellipsis is placed after a break opportunity</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-001-ref.html"> 7 <meta name="assert" content="The block overflow ellipsis must be placed after the last soft wrap opportunity that still allows the ellipsis to fit on the line."> 8 <style> 9 .clamp { 10 line-clamp: 2; 11 width: 63.1ch; 12 border: 1px solid black; 13 font-family: monospace; 14 } 15 </style> 16 <div class="clamp"> 17 This time, Mark, who had always been the center of attention in 18 <!-- End of first line --> 19 any social gathering, walked into the room uncharacteristically 20 <!-- Break point for the second line if the ellipsis was not there. --> 21 quietly, barely speaking as he settled into a chair. 22 </div>