fixed-block-size-flex-basis-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-fixedblocksize"> 4 <link rel="match" href="../green-square-ref.html"> 5 <meta name="assert" content="This test checks that LayoutConstraints#fixedBlockSize is passed into the layout function correctly." /> 6 <style> 7 body { 8 display: flex; 9 } 10 11 .test { 12 writing-mode: vertical-rl; 13 background: red; 14 --expected-block-size: 100; 15 flex-basis: 100px; 16 } 17 18 .child { 19 background: green; 20 } 21 22 @supports (display: layout(test)) { 23 .test { 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"> 32 <div class="child"></div> 33 </div> 34 35 <script> 36 importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/constraints-fixed-block-size.js'}); 37 </script>