Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<meta charset="utf-8">
<title>CSS Overflow: `line-clamp: auto` should correctly handle min-height containers with descendants.</title>
<link rel="author" title="Seva Alipov" href="mailto:salipov@mozilla.com">
<link rel="match" href="reference/line-clamp-auto-058-ref.html">
<style>
div {
font: 16px / 32px serif;
background-color: yellow;
}
.clamp-auto {
line-clamp: auto;
max-height: 3lh;
}
.min-height {
min-height: 1lh;
}
</style>
<div class="clamp-auto">
<div class="min-height">
Line 1<br>
<div>
Line 2<br>
</div>
Line 3<br>
</div>
Line 4<br>
Line 5<br>
</div>