Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow: `text-overflow: ellipsis` and unconstrained `line-clamp: auto`</title>
<link rel="author" title="Andreu Botella" href="mailto:abotella@igalia.com">
<link rel="match" href="reference/webkit-line-clamp-037-ref.html">
<meta name="assert" content="text-overflow: ellipsis doesn't apply in a line-clamp: auto context, even if it doesn't have a max-height">
<style>
.clamp {
width: 150px;
font: 16px / 32px monospace;
background-color: yellow;
padding: 4px;
line-clamp: auto;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
<div class="clamp">
supercalifragilisticexpialidocious
supercalifragilisticexpialidocious
</div>