fixed-inline-size-block-auto.https.html (798B)
1 <!DOCTYPE html> 2 <html class=reftest-wait> 3 <link rel="help" href="https://drafts.css-houdini.org/css-layout-api/#dom-layoutconstraints-fixedinlinesize"> 4 <link rel="match" href="fixed-inline-size-ref.html"> 5 <meta name="assert" content="This test checks that LayoutConstraints#fixedInlineSize is passed into the layout function correctly." /> 6 <style> 7 body { 8 width: 120px; 9 } 10 11 .test { 12 margin-right: 20px; 13 background: red; 14 } 15 16 @supports (display: layout(test)) { 17 .test { 18 background: green; 19 display: layout(test); 20 } 21 } 22 </style> 23 <script src="/common/reftest-wait.js"></script> 24 <script src="/common/worklet-reftest.js"></script> 25 26 <div class="test"></div> 27 28 <script> 29 importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/constraints-fixed-inline-size.js'}); 30 </script>