chromium/third_party/blink/web_tests/external/wpt/css/css-inline/text-box-trim/text-box-trim-line-clamp-001.html

<!DOCTYPE html>
<title>text-box-trim applies to the last line after line-clamp</title>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-trim">
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-edge">
<link ref="help" href="https://www.w3.org/TR/css-overflow-4/#line-clamp">
<link rel="match" href="text-box-trim-line-clamp-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;
}
.clamp {
  line-clamp: 3;
}
@supports not (line-clamp: 3) {
  .clamp {
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
</style>
<div class="spacer"></div>
<div class="target clamp">
  A<br>
  B<br>
  C<br>
  D</div>
<div class="spacer"></div>