fixed-block-size-quirky-body.https.html (1022B)
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 iframe { border: none; width: 200px; height: 200px; } 8 </style> 9 <script src="/common/reftest-wait.js"></script> 10 <script src="/common/worklet-reftest.js"></script> 11 <body> 12 <script> 13 // For this test we load a quirky iframe with the test file. 14 // We can control the auto size of the iframe body element by setting the iframe height. 15 const iframe = document.createElement('iframe'); 16 document.body.appendChild(iframe); 17 iframe.addEventListener('load', () => { 18 importWorkletAndTerminateTestAfterAsyncPaint( 19 iframe.contentWindow.CSS.layoutWorklet, {url: 'constraints-fixed-block-size.js'}); 20 }); 21 iframe.src = 'support/constraints-fixed-block-size-quirky-body-iframe.html'; 22 </script>