wpt / css / css-inline / text-box-trim / text-box-trim-line-clamp-auto-001.html

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

/css/css-inline/text-box-trim/text-box-trim-line-clamp-auto-001.html

<!DOCTYPE html>
<meta charset="UTF-8">
<title>text-box-trim applies to the last line before clamp when clamping by a height</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="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">
  A<br>
  B<br>
  C<br>
  D</div>
<div class="spacer"></div>

/css/css-inline/text-box-trim/text-box-trim-line-clamp-auto-001-ref.html

<!DOCTYPE html>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.spacer {
  background: lightgray;
  block-size: 100px;
}
.target {
  font: 50px/2 Ahem;
  height: 275px;
}
</style>
<div class="spacer"></div>
<div class="target">
  A<br>
  B<br>
  C…</div>
<div class="spacer"></div>