Status: FAIL | Duration: 25ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-lanes/grid-placement/row-explicit-placement-008.html
<!DOCTYPE html> <html> <link rel="help" href="https://drafts.csswg.org/css-grid-3"> <link rel="match" href="row-explicit-placement-008-ref.html"> <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com"> <style> .grid-lanes { display: grid-lanes; grid-template-rows: repeat(3, 100px); background: gray; flow-tolerance: 0; height: 200px; gap: 20px; padding: 20px; } .first-track { background: lightskyblue; grid-row-start: 1; writing-mode: vertical-rl; margin-top: 10px; } .second-track { background: lightcoral; grid-row-start: 2; } .third-track { background: lightgreen; grid-row-start: 3; writing-mode: vertical-lr; } </style> <body> <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> <div class="grid-lanes"> <div class="first-track">This is some text</div> <div class="first-track" style="margin-right: 10px;">This is some text</div> <div class="first-track" style="writing-mode: horizontal-tb">This is some text</div> <div class="second-track" style="margin-bottom: 10px;">Some larger words in this sentence</div> <div class="third-track">The cat cannot be separated from milk</div> <div class="third-track">This is some other text</div> </div> </body> </html>
/css/css-grid/grid-lanes/grid-placement/row-explicit-placement-008-ref.html
<!DOCTYPE html> <html> <link rel="help" href="https://drafts.csswg.org/css-grid-3"> <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com"> <style> .grid { display: grid; background: gray; grid-template-rows: repeat(3, 100px); grid-template-columns: repeat(3, 100px); height: 200px; gap: 20px; padding: 20px; } .first-track { background: lightskyblue; grid-row-start: 1; writing-mode: vertical-rl; margin-top: 10px; width: fit-content; } .second-track { background: lightcoral; grid-row-start: 2; width: max-content; grid-column: span 2; } .third-track { background: lightgreen; grid-row-start: 3; writing-mode: vertical-lr; width: fit-content; } .flex { display: flex; flex-direction: row; gap: 20px; width: max-content; } </style> <body> <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> <div class="grid"> <div class="flex"> <div class="first-track">This is some text</div> <div class="first-track" style="margin-right: 10px;">This is some text</div> <div class="first-track" style="writing-mode: horizontal-tb; width: max-content;">This is some text</div> </div> <div class="second-track" style="margin-bottom: 10px;">Some larger words in this sentence</div> <div class="flex" style="grid-row-start: 3;"> <div class="third-track">The cat cannot be separated from milk</div> <div class="third-track">This is some other text</div> </div> </div> </body> </html>