wpt / css / css-inline / text-box-trim / text-box-on-non-root-inline-box.html

Status: FAIL | Duration: 8ms | Subtests: 1/4 | Open test on wpt.live | wpt.fyi

Data from commit:
708eb61 WPT runner: support mismatch reftests and multiple rel=match links (#665) (2026-08-09)

SubtestStatusMessage
.aqua 1FAILassert_equals: data-offset-y expected 55 got 0 assert_equals: data-expected-height expected 25 got 0
.aqua 2FAILassert_equals: data-offset-y expected 25 got 0 assert_equals: data-expected-height expected 75 got 0
.aqua 3FAILassert_equals: data-expected-height expected 80 got 0
.aqua 4PASS

/css/css-inline/text-box-trim/text-box-on-non-root-inline-box.html

<!DOCTYPE html>
<title>text-box on non-root inline box does not affect layout bounds only the box's size.</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 rel="stylesheet" href="/fonts/baseline-diagnostic/baseline-diagnostic-font.css">
<meta charset="utf-8">
<style>
.test {
  font: 100px/1 BaselineDiagnosticAlphabeticZero;
  position: relative;
  white-space: nowrap;
}
.aqua {
  background-color: aqua;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<body>
<div class="test">
  <span class=aqua style="text-box: ex alphabetic;" data-offset-y=55 data-expected-height=25>█BxIF</span>
  <span class=aqua style="text-box: trim-start cap alphabetic;" data-offset-y=25 data-expected-height=75>█BxIF</span>
  <span class=aqua style="text-box: trim-end text alphabetic;" data-offset-y=0 data-expected-height=80>█BxIF</span>
</div>
<div class="test aqua" data-expected-height=150>
  <span style="font-size: 150px; text-box: ex alphabetic;">█BxIF</span>
</div>
<script>
  document.fonts.ready.then(() => checkLayout('.aqua'));
</script>
</body>