diff options
author | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2018-06-03 21:07:04 -0400 |
---|---|---|
committer | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2018-06-03 22:45:23 -0400 |
commit | 83e2dc11b071afd3ad4a287249b0a0602f6314a0 (patch) | |
tree | f0370fbcc956ffc0c9dca73954fb87c38f00284f /tests/wpt/web-platform-tests/css/css-layout-api/constraints-fixed-block-size-fixed.https.html | |
parent | d23bc4f1a4e3e56290f823b0466f7ca6905f8ccd (diff) | |
download | servo-83e2dc11b071afd3ad4a287249b0a0602f6314a0.tar.gz servo-83e2dc11b071afd3ad4a287249b0a0602f6314a0.zip |
Update web-platform-tests to revision ee82278e15570e573d87fb80179ff8231b6db61a
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-layout-api/constraints-fixed-block-size-fixed.https.html')
-rw-r--r-- | tests/wpt/web-platform-tests/css/css-layout-api/constraints-fixed-block-size-fixed.https.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-layout-api/constraints-fixed-block-size-fixed.https.html b/tests/wpt/web-platform-tests/css/css-layout-api/constraints-fixed-block-size-fixed.https.html new file mode 100644 index 00000000000..646a514d18c --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-layout-api/constraints-fixed-block-size-fixed.https.html @@ -0,0 +1,33 @@ +<!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> +.test { + background: red; + --expected-block-size: 60; + width: 100px; + height: 60px; +} + +.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> |