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/webkit-line-clamp-053.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow: justified -webkit-line-clamp ellipsis</title>
<link rel="match" href="reference/webkit-line-clamp-053-ref.html">
<meta name="assert" content="If the -webkit-line-clamp ellipsis would be placed in a justified line, the justification happens after placing the ellipsis.">
<style>
.clamp {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
width: 8ch;
border: 2px solid black;
text-align: justify;
font-family: monospace;
}
</style>
<div class="clamp">
XXX XXX XX XX XXXXX
</div>