https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 3420010fcacabcec00013c156c2082e7252b605b authored by Darren Shen on 10 April 2018, 08:46:40 UTC
[css-typed-om] Fix unsupported values in non-list-valued properties.
Tip revision: 3420010
constraints-fixed-inline-size-block-auto-avoid-floats.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>
body {
  width: 200px;
}

.float {
  float: right;
  width: 100px;
  height: 20px;
}

.test {
  background: red;
}

@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="float"></div>
<div class="test"></div>

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