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