wpt / css / css-inline / text-box-trim / text-box-trim-end-002.html

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

/css/css-inline/text-box-trim/text-box-trim-end-002.html

<!DOCTYPE html>
<title>Test text-box-trim: trim-end using a non-zero alphabetic baseline</title>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-edge">
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-trim">
<link rel="match" href="text-box-trim-end-002-ref.html">
<meta charset="utf-8">
<link rel="stylesheet" href="/fonts/baseline-diagnostic/baseline-diagnostic-font.css">
<style>
.spacer {
  background: lightgray;
  block-size: 100px;
}
.target {
  font: 100px/2 BaselineDiagnostic;
  text-box: trim-end text alphabetic;
}
</style>
<div class="spacer"></div>
<div class="target">█BxIF</div>
<div class="spacer"></div>

/css/css-inline/text-box-trim/text-box-trim-end-002-ref.html

<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="/fonts/baseline-diagnostic/baseline-diagnostic-font.css">
<style>
.spacer {
  background: lightgray;
  block-size: 100px;
}
.target {
  font: 100px/2 BaselineDiagnostic;
  block-size: calc(0.5em + 1em * var(--baseline-diagnostic-alphabetic));
}
</style>
<div class="spacer"></div>
<div class="target">█BxIF</div>
<div class="spacer"></div>