wpt / css / css-overflow / line-clamp / line-clamp-auto-037.html

Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-overflow/line-clamp/line-clamp-auto-037.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow: `line-clamp: auto` with non-zero max-height that doesn't fit any content</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-auto-011-ref.html">
<meta name="assert" content="When line-clamp: auto is used with a max-height that isn't enough for any contained boxes or line boxes, then it should not show any content and its content box's intrinsic size should be zero">
<style>
.clamp {
  line-clamp: auto;
  max-height: 0.5lh;
  font: 16px / 32px serif;
  white-space: pre;
  background-color: yellow;
  border: 1px solid black;
  padding: 4px;
}
</style>
<div class="clamp">Line 1
Line 2
Line 3
Line 4</div>
<p>Following content.</p>

/css/css-overflow/line-clamp/reference/line-clamp-auto-011-ref.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<style>
.clamp {
  background-color: yellow;
  border: 1px solid black;
  padding: 4px;
}
</style>
<div class="clamp"></div>
<p>Following content.</p>