fixed-block-size-flex-column-none.https.html (884B)
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 flex-direction: column; 10 width: 100px; 11 } 12 13 .test { 14 background: red; 15 --expected-block-size: null; 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>