Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow: empty string and no-ellipsis</title>
<link rel="match" href="reference/block-ellipsis-023-ref.html">
<meta name="assert" content="block-ellipsis: '' has the same effect as no-ellipsis, and must not displace content to make room for the (non-existant) ellipsis">
<style>
.clamp {
line-clamp: 4 "";
width: 32ch;
font-family: monospace;
}
</style>
<div class="clamp">
Test passes if there are 4 lines
and the last two are identical
supercalifragilisticexpialidocious
supercalifragilisticexpialidocious
Test fails: this should not be visible
</div>