diff options
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-layout-api/constraints/fixed-inline-size-block-auto-vlr.https.html')
-rw-r--r-- | tests/wpt/web-platform-tests/css/css-layout-api/constraints/fixed-inline-size-block-auto-vlr.https.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-layout-api/constraints/fixed-inline-size-block-auto-vlr.https.html b/tests/wpt/web-platform-tests/css/css-layout-api/constraints/fixed-inline-size-block-auto-vlr.https.html new file mode 100644 index 00000000000..0c15fd12eed --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-layout-api/constraints/fixed-inline-size-block-auto-vlr.https.html @@ -0,0 +1,31 @@ +<!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="fixed-inline-size-ref.html"> +<meta name="assert" content="This test checks that LayoutConstraints#fixedInlineSize is passed into the layout function correctly." /> +<style> +body { + height: 120px; + writing-mode: vertical-lr; +} + +.test { + margin-bottom: 20px; + 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="test"></div> + +<script> +importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/constraints-fixed-inline-size.js'}); +</script> |