row-explicit-placement-008.html (1449B)
1 <!DOCTYPE html> 2 <html> 3 <link rel="help" href="https://drafts.csswg.org/css-grid-3"> 4 <link rel="match" href="row-explicit-placement-008-ref.html"> 5 <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com"> 6 <style> 7 .grid-lanes { 8 display: grid-lanes; 9 grid-lanes-direction: row; 10 grid-template-rows: repeat(3, 100px); 11 background: gray; 12 flow-tolerance: 0; 13 height: 200px; 14 gap: 20px; 15 padding: 20px; 16 } 17 18 .first-track { 19 background: lightskyblue; 20 grid-row-start: 1; 21 writing-mode: vertical-rl; 22 margin-top: 10px; 23 } 24 25 .second-track { 26 background: lightcoral; 27 grid-row-start: 2; 28 } 29 30 .third-track { 31 background: lightgreen; 32 grid-row-start: 3; 33 writing-mode: vertical-lr; 34 } 35 </style> 36 <body> 37 <p>Test that orthoganal grid-lanes with explicit placement are correctly positioned within the grid axis and that the margins on the orthogonal items correctly affect track sizing.</p> 38 <div class="grid-lanes"> 39 <div class="first-track">This is some text</div> 40 <div class="first-track" style="margin-right: 10px;">This is some text</div> 41 <div class="first-track" style="writing-mode: horizontal-tb">This is some text</div> 42 <div class="second-track" style="margin-bottom: 10px;">Some larger words in this sentence</div> 43 <div class="third-track">The cat cannot be separated from milk</div> 44 <div class="third-track">This is some other text</div> 45 </div> 46 </body> 47 </html>