fixed-inline-size-absolute-top-bottom-vrl.https.html (891B)
1 <!DOCTYPE html> 2 <html class=reftest-wait> 3 <link rel="help" href="https://drafts.css-houdini.org/css-layout-api/#dom-layoutconstraints-fixedinlinesize"> 4 <link rel="match" href="fixed-inline-size-ref.html"> 5 <meta name="assert" content="This test checks that LayoutConstraints#fixedInlineSize is passed into the layout function correctly." /> 6 <style> 7 body { 8 position: relative; 9 height: 120px; 10 } 11 12 .test { 13 background: red; 14 position: absolute; 15 left: 0px; 16 top: 0px; 17 bottom: 20px; 18 writing-mode: vertical-rl; 19 } 20 21 @supports (display: layout(test)) { 22 .test { 23 background: green; 24 display: layout(test); 25 } 26 } 27 </style> 28 <script src="/common/reftest-wait.js"></script> 29 <script src="/common/worklet-reftest.js"></script> 30 31 <div class="test"></div> 32 33 <script> 34 importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/constraints-fixed-inline-size.js'}); 35 </script>