gap-007-rtl-ref.html (823B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Flexbox Test: gap - rtl wrap vertical</title> 4 <link rel="author" title="Adam Argyle" href="mailto:argyle@google.com"> 5 <style> 6 body { 7 direction: rtl; 8 } 9 10 section { 11 background-color: green; 12 block-size: 100px; 13 inline-size: 200px; 14 display: inline-flex; 15 flex-direction: column; 16 flex-wrap: wrap; 17 line-height: 18px; 18 } 19 section > div{ 20 background-color: grey; 21 color: white; 22 } 23 section > div:nth-child(2) { 24 margin-block: 20px; 25 } 26 section > div:not(:last-of-type) { 27 margin-inline-end: 20px; 28 } 29 </style> 30 <body> 31 <p>Test passes if there are <strong> green lines between boxes</strong>.</p> 32 <section> 33 <div>Black Panther</div> 34 <div>Wonder Woman</div> 35 <div>Storm</div> 36 <div>Flash</div> 37 </section> 38 </body>