vlr-rtl.https.html (1091B)
1 <!DOCTYPE html> 2 <html class=reftest-wait> 3 <link rel="help" href="https://drafts.css-houdini.org/css-layout-api/#layoutfragment"> 4 <link rel="match" href="ref.html"> 5 <meta name="assert" content="This test checks that child fragments get positioned correctly." /> 6 <style> 7 .test { 8 background: red; 9 width: 100px; 10 height: 100px; 11 } 12 13 .test { 14 writing-mode: vertical-lr; 15 direction: rtl; 16 } 17 18 .child-1 { 19 background: rebeccapurple; 20 width: 10px; 21 height: 20px; 22 23 --inline-offset: 55; 24 --block-offset: 5; 25 } 26 27 .child-2 { 28 writing-mode: vertical-rl; 29 background: rebeccapurple; 30 width: 15px; 31 height: 25px; 32 33 --inline-offset: 15; 34 --block-offset: 50; 35 } 36 37 @supports (display: layout(test)) { 38 .test { 39 background: green; 40 display: layout(test); 41 } 42 } 43 </style> 44 <script src="/common/reftest-wait.js"></script> 45 <script src="/common/worklet-reftest.js"></script> 46 47 <div class="test"> 48 <div class="child-1"></div> 49 <div class="child-2"></div> 50 </div> 51 52 <script> 53 importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/layout-position-child-worklet.js'}); 54 </script>