gap-003-rtl-ref.html (801B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Flexbox Test: gap - RTL rows and columns</title> 4 <link rel="author" title="Adam Argyle" href="mailto:argyle@google.com"> 5 <style> 6 body { 7 direction: rtl; 8 } 9 section { 10 background-color: green; 11 block-size: 100px; 12 display: flex; 13 flex-wrap: wrap; 14 } 15 section > div{ 16 background-color: grey; 17 } 18 section > div { 19 width: calc(50% - 10px); 20 } 21 section > div:nth-child(1), 22 section > div:nth-child(3) { 23 margin-inline-end: 20px; 24 } 25 section > div:nth-child(3), 26 section > div:nth-child(4) { 27 margin-block-start: 20px; 28 } 29 </style> 30 <body> 31 <p>Test passes if there are <strong> green lines between boxes</strong>.</p> 32 <section> 33 <div></div> 34 <div></div> 35 <div></div> 36 <div></div> 37 </section> 38 </body>