https://github.com/web-platform-tests/wpt
Raw File
Tip revision: be42da5976a6b7ae2ebe9965350a786946fbd072 authored by Frédéric Wang on 20 September 2018, 14:08:51 UTC
CSSOM View Scroll Behavior: Check scroll positions during smooth scrolling starting from different initial positions.
Tip revision: be42da5
constraints-fixed-block-size-flex-percentage-indefinite.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 {
  background: red;
  --expected-block-size: null; /* Percentage which we are resolving height against is indefinite. */
  width: 100px;
  height: 50%;
}

.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