Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-inline/text-box-trim/text-box-trim-line-clamp-auto-block-in-inline-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="UTF-8">
<title>text-box-trim when used together with line-clamp: auto shouldn't crash with block-in-inlines</title>
<link rel="match" href="text-box-trim-line-clamp-auto-001-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.spacer {
background: lightgray;
block-size: 100px;
}
.target {
font: 50px/2 Ahem;
text-box-trim: trim-end;
text-box-edge: text;
line-clamp: auto;
max-height: 285px;
}
</style>
<div class="spacer"></div>
<div class="target">
<span>
<div>A</div>
</span>
<span>
<div>B<br>C<br>D</div>
<span>
<div>E</div>
</span>
</div>
<div class="spacer"></div>