Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-overflow/line-clamp/block-ellipsis-016.html
<!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="help" href="https://drafts.csswg.org/css-overflow-4/#block-ellipsis"> <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>
/css/css-overflow/line-clamp/reference/block-ellipsis-016-ref.html
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Reference</title> <style> .clamp { width: 20.1ch; border: 1px solid black; font-family: monospace; } </style> <div class="clamp"> This time, Mark walked in <br> … </div>