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