1
0
Fork 0
firefox/testing/web-platform/tests/css/css-inline/text-box-trim/text-box-trim-line-clamp-auto-block-in-inline-001.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

37 lines
955 B
HTML

<!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="help" href="https://drafts.csswg.org/css-inline-3/#propdef-text-box-edge">
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#propdef-text-box-trim">
<link rel="help" href="https://drafts.csswg.org/css-overflow-4/#line-clamp">
<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</div>
</span>
<span>
<div>C</div>
</span>
<span>
<div>D</div>
</span>
</div>
<div class="spacer"></div>