Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-overflow/line-clamp/block-ellipsis-041.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow: No clearance if block-ellipsis fits</title>
<link rel="match" href="reference/block-ellipsis-041-ref.html">
<meta name="assert" content="After displacing content to make room for the ellipsis, if the line would fit next to a float, keep and there and do not shift it down.">
<style>
.test {
font-family: monospace;
width: 5.1ch; /* .1 is to make sure rounding errors don't interfere with line breaking */
line-clamp: 1;
}
aside {
float: left;
width: 1ch;
height: 1lh;
}
.red { color: red; }
</style>
<p>Test passes if there is a “…” below and <strong>no red</strong>.
<div class=test>
<aside></aside>
<span class=red>FAIL FAIL FAIL FAIL</span>
</div>