Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow: soft wrap opportunities created by overflow-wrap are ignored for inserting block-ellipsis</title>
<link rel="author" title="Andreu Botella" href="mailto:abotella@igalia.com">
<link rel="match" href="reference/block-ellipsis-016-ref.html">
<meta name="assert" content="The block-ellipsis is placed after the last soft wrap opportunity in the line box that fits the ellipsis. `overflow-wrap: anywhere`, however, does not count as creating soft wrap opportunities. Therefore, if a line with the ellipsis has no breakpoints that would prevent it from overflowing, it gets entirely displaced by the ellipsis.">
<style>
.clamp {
line-clamp: 3;
width: 20.1ch;
border: 1px solid black;
font-family: monospace;
overflow-wrap: anywhere;
}
</style>
<div class="clamp">
This time, Mark
walked in
uncharacteristically <!-- the ellipsis would cause this line to overflow -->
quietly.
</div>