wpt / css / css-align / abspos / stretch-intrinsic-size-htb-htb.html

Status: FAIL | Duration: 2ms | Subtests: 3/12 | 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
.item 1FAILassert_equals: data-expected-width expected 20 got 40 assert_equals: data-expected-height expected 20 got 50
.item 2FAILassert_equals: data-expected-height expected 40 got 50
.item 3FAILassert_equals: data-expected-width expected 50 got 40
.item 4PASS
.item 5FAILassert_equals: data-expected-width expected 20 got 40 assert_equals: data-expected-height expected 20 got 40
.item 6PASS
.item 7FAILassert_equals: data-expected-width expected 50 got 40 assert_equals: data-expected-height expected 50 got 40
.item 8FAILassert_equals: data-expected-height expected 50 got 40
.item 9FAILassert_equals: data-expected-width expected 10 got 40 assert_equals: data-expected-height expected 10 got 50
.item 10FAILassert_equals: data-expected-height expected 40 got 50
.item 11FAILassert_equals: data-expected-width expected 50 got 40
.item 12PASS

/css/css-align/abspos/stretch-intrinsic-size-htb-htb.html

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">
<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">
<style>
body {
  margin: 0;
}

.container {
  writing-mode: horizontal-tb;
  display: inline-block;
  position: relative;
  margin: 20px;
  border: solid 4px;
  width: 60px;
  height: 60px;
}

.item {
  writing-mode: horizontal-tb;
  position: absolute;
  background: green;
  inset: 5px 10px 5px 10px;
}

.child::before {
  aspect-ratio: 1/1;
  min-width: 20px;
  min-height: 20px;
  width: 100%;
  height: 100%;
  content: '';
  display: block;
}

.ar {
  aspect-ratio: 1/1;
  min-width: 20px;
  min-height: 20px;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>

<body onload="checkLayout('.item')">

<body>

<div class="container">
  <div class="item child" style="justify-self: start; align-self: start;" data-expected-width="20" data-expected-height="20"></div>
</div>

<div class="container">
  <div class="item child" style="justify-self: stretch; align-self: start;" data-expected-width="40" data-expected-height="40"></div>
</div>

<div class="container">
  <div class="item child" style="justify-self: start; align-self: stretch;" data-expected-width="50" data-expected-height="50"></div>
</div>

<div class="container">
  <div class="item child" style="justify-self: stretch; align-self: stretch;" data-expected-width="40" data-expected-height="50"></div>
</div>

<br>

<div class="container">
  <div class="item ar" style="justify-self: start; align-self: start;" data-expected-width="20" data-expected-height="20"></div>
</div>

<div class="container">
  <div class="item ar" style="justify-self: stretch; align-self: start;" data-expected-width="40" data-expected-height="40"></div>
</div>

<div class="container">
  <div class="item ar" style="justify-self: start; align-self: stretch;" data-expected-width="50" data-expected-height="50"></div>
</div>

<div class="container">
  <div class="item ar" style="justify-self: stretch; align-self: stretch;" data-expected-width="40" data-expected-height="50"></div>
</div>

<br>

<div class="container">
  <canvas width="10" height="10" class="item" style="justify-self: start; align-self: start;" data-expected-width="10" data-expected-height="10"></canvas>
</div>

<div class="container">
  <canvas width="10" height="10" class="item" style="justify-self: stretch; align-self: start;" data-expected-width="40" data-expected-height="40"></canvas>
</div>

<div class="container">
  <canvas width="10" height="10" class="item" style="justify-self: start; align-self: stretch;" data-expected-width="50" data-expected-height="50"></canvas>
</div>

<div class="container">
  <canvas width="10" height="10" class="item" style="justify-self: stretch; align-self: stretch;" data-expected-width="40" data-expected-height="50"></canvas>
</div>