block-ellipsis-027.html (1068B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Overflow: block-ellipsis and "nowrap" inlines</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/#block-ellipsis"> 6 <link rel="match" href="reference/block-ellipsis-026-ref.html"> 7 <meta name="assert" content="The block-ellipsis displaces entire sequences of nowrap content if it needs to make room, regardless of internal wrap opportunities."> 8 <style> 9 .clamp { 10 line-clamp: 2; 11 width: 63.1ch; 12 border: 1px solid black; 13 font-family: monospace; 14 } 15 span { 16 white-space: nowrap; 17 } 18 </style> 19 <p>Test passes if there are two lines below, and if there is an ellipsis (“…”) after the word “walked” at the end of the second line. 20 21 <div class="clamp">This time, Mark, who had always been the center of attention in 22 any social gathering, walked <span>into the room uncharacteristically</span> 23 quietly, barely speaking as he settled into a chair. 24 When asked, he said that he was fine, when he wasn't really fine.</div>