https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 962d90000cca374f4756bc65ea024e06c0150499 authored by Philip Jägenstedt on 22 December 2018, 11:59:40 UTC
DO NOT MERGE: probe for idlharness.js flakiness
Tip revision: 962d900
constraints-fixed-inline-size-fixed.https.html
<!DOCTYPE html>
<html class=reftest-wait>
<link rel="help" href="https://drafts.css-houdini.org/css-layout-api/#dom-layoutconstraints-fixedinlinesize">
<link rel="match" href="constraints-fixed-inline-size-ref.html">
<meta name="assert" content="This test checks that LayoutConstraints#fixedInlineSize is passed into the layout function correctly." />
<style>
.test {
  background: red;
  width: 100px;
}

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

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

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