fixed-inline-size-fixed.https.html (766B)
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 .test { 8 background: red; 9 width: 100px; 10 } 11 12 @supports (display: layout(test)) { 13 .test { 14 background: green; 15 display: layout(test); 16 } 17 } 18 </style> 19 <script src="/common/reftest-wait.js"></script> 20 <script src="/common/worklet-reftest.js"></script> 21 22 <div class="test"></div> 23 24 <script> 25 importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/constraints-fixed-inline-size.js'}); 26 </script>