wpt / css / css-layout-api / constraints / fixed-block-size-absolute-left-right-vrl.https.html

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

/css/css-layout-api/constraints/fixed-block-size-absolute-left-right-vrl.https.html

<!DOCTYPE html>
<html class=reftest-wait>
<link rel="help" href="https://drafts.css-houdini.org/css-layout-api/#dom-layoutconstraints-fixedblocksize">
<link rel="match" href="../green-square-ref.html">
<meta name="assert" content="This test checks that LayoutConstraints#fixedBlockSize is passed into the layout function correctly." />
<style>
body {
  position: relative;
  width: 120px;
}

.test {
  writing-mode: vertical-rl;
  background: red;
  position: absolute;
  left: 0px;
  right: 20px;
  --expected-block-size: 100;
}

.child {
  background: green;
}

@supports (display: layout(test)) {
  .test {
    display: layout(test);
  }
}
</style>
<script src="/common/reftest-wait.js"></script>
<script src="/common/worklet-reftest.js"></script>

<div class="test">
  <div class="child"></div>
</div>

<script>
importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/constraints-fixed-block-size.js'});
</script>

/css/css-layout-api/green-square-ref.html

<!DOCTYPE html>
<style>
.result {
  background: green;
  height: 100px;
  width: 100px;
}
</style>
<div class="result"></div>