https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ffa8120532d7c0f9a8f2eb4aca9e13073ab557cd authored by Marcos Cáceres on 28 November 2018, 04:56:37 UTC
Another typo
Tip revision: ffa8120
constraints-fixed-block-size-flex-basis-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 {
  display: flex;
}

.test {
  writing-mode: vertical-rl;
  background: red;
  --expected-block-size: 100;
  flex-basis: 100px;
}

.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>
back to top