fixed-block-size-grid-none.https.html (858B)
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: grid; 9 } 10 11 .test { 12 background: red; 13 --expected-block-size: null; 14 width: 100px; 15 } 16 17 .child { 18 background: green; 19 } 20 21 @supports (display: layout(test)) { 22 .test { 23 display: layout(test); 24 } 25 } 26 </style> 27 <script src="/common/reftest-wait.js"></script> 28 <script src="/common/worklet-reftest.js"></script> 29 30 <div class="test"> 31 <div class="child"></div> 32 </div> 33 34 <script> 35 importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/constraints-fixed-block-size.js'}); 36 </script>