block-ellipsis-028.html (1049B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Overflow: block-ellipsis and soft-hyphens</title> 4 <link rel="author" title="Andreu Botella" href="mailto:abotella@igalia.com"> 5 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"> 6 <link rel="help" href="https://drafts.csswg.org/css-overflow-4/#block-ellipsis"> 7 <link rel="match" href="reference/block-ellipsis-028-ref-a.html"> 8 <link rel="match" href="reference/block-ellipsis-028-ref-b.html"> 9 <meta name="assert" content="Soft hyphens create opportunities for placement of the block-ellipsis"> 10 <style> 11 .clamp { 12 line-clamp: 2; 13 width: 63.1ch; 14 border: 1px solid black; 15 font-family: monospace; 16 hyphens: manual; /* Initial value, but explicit since that's the target of the test*/ 17 } 18 </style> 19 <div class="clamp">This time, Mark, who had always been the center of attention in 20 any social gathering, walked into the room uncharacteristi­cally 21 quietly, barely speaking as he settled into a chair. 22 When asked, he said that he was fine, when he wasn't really fine.</div>