fixed-inline-size-vrl.https.html (1459B)
1 <!DOCTYPE html> 2 <html class=reftest-wait> 3 <link rel="help" href="https://drafts.css-houdini.org/css-layout-api/#dom-layoutconstraintsoptions-fixedinlinesize"> 4 <link rel="match" href="../green-square-ref.html"> 5 <meta name="assert" content="This test checks that fixing the inline size of children works as expected." /> 6 7 <style> 8 .test { 9 writing-mode: vertical-rl; 10 background: red; 11 height: 100px; 12 } 13 14 .htb { 15 writing-mode: horizontal-tb; 16 visibility: hidden; 17 width: 3px; 18 height: 2px; 19 20 --fixed-inline-size: 10; 21 22 --inline-size-expected: 10; 23 --block-size-expected: 3; 24 } 25 26 .vrl { 27 writing-mode: vertical-rl; 28 visibility: hidden; 29 width: 3px; 30 height: 2px; 31 32 --fixed-inline-size: 10; 33 34 --inline-size-expected: 10; 35 --block-size-expected: 3; 36 } 37 38 @supports (display: layout(test)) { 39 .test { 40 background: green; 41 display: layout(test); 42 } 43 } 44 </style> 45 <script src="/common/reftest-wait.js"></script> 46 <script src="/common/worklet-reftest.js"></script> 47 48 <div class="test"> 49 <div class="htb"></div> 50 <div class="vrl"></div> 51 <!-- min/max-height should have no effect, fixedInlineSize wins. --> 52 <div class="htb" style="max-height: 5px;"></div> 53 <div class="vrl" style="max-height: 5px;"></div> 54 <div class="htb" style="min-height: 15px;"></div> 55 <div class="vrl" style="min-height: 15px;"></div> 56 </div> 57 58 <script> 59 importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/layout-child-sizes-worklet.js'}); 60 </script>