blob: 04d45332d105296df5168c1d6ab23633544cbea8 [file] [log] [blame]
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow: line-clamp with text-overflow<string></title>
<link rel="author" title="Andreu Botella" href="mailto:abotella@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-overflow-4/#line-clamp">
<link rel="match" href="reference/line-clamp-with-text-overflow-string-003-ref.html">
<meta name="assert" content="If text-overflow has a string value, all lines that ellipsize because of that property should use that string as the ellipsis. This should happen even inside of a line-clamp container.">
<style>
.clamp {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
line-clamp: 4;
font: 16px / 32px monospace;
white-space: pre;
background-color: yellow;
padding: 0 4px;
width: 35.1ch;
text-overflow: "-";
overflow: hidden;
}
</style>
<div class="clamp">Line 1
Line 2 overflows the line-clamp container
Line 3
Line 4
Line 5</div>