Status: FAIL | Duration: 18ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-lanes/item-placement/column-negative-margin-003.html
<!DOCTYPE html> <html> <link rel="help" href="https://drafts.csswg.org/css-grid-3"> <link rel="match" href="column-negative-margin-003-ref.html"> <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com"> <style> body, html { color:black; font-size:15px/1 monospace; } .grid-lanes { display: grid-lanes; flow-tolerance: 0; grid-template-columns: repeat(3, 50px); } .orthogonal { writing-mode: vertical-rl; } </style> <body> <p>Tests that orthogonal items with negative margins are handled correctly in grid-lanes.</p> <div class="grid-lanes"> <div style="background: aquamarine; height: 50px;"> item 1 </div> <!-- Orthogonal item that should not regress the running position. --> <div class="orthogonal" style="background: lightsteelblue; width: 50px; height: 50px; margin-bottom: -30px; margin-top: -20px;"> item 2 </div> <div style="background: lightblue; height: 30px;"> item 3 </div> <div class="orthogonal" style="background: lightpink; width: 20px; height: max-content;"> item 4 </div> <div class="orthogonal" style="background: yellow; height: 20px; margin-top: -10px;"> item 5 </div> </div> </body> </html>
/css/css-grid/grid-lanes/item-placement/column-negative-margin-003-ref.html
<!DOCTYPE html> <html> <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com"> <style> body, html { color:black; font-size:15px/1 monospace; } .grid { display: grid; grid-template-columns: repeat(3, 50px); } .orthogonal { writing-mode: vertical-rl; } </style> <body> <p>Tests that orthogonal items with negative margins are handled correctly in grid-lanes.</p> <div class="grid"> <div style="grid-column: 1;"> <div style="background: aquamarine; height: 50px;"> item 1 </div> </div> <div style="grid-column: 2;"> <div class="orthogonal" style="background: lightsteelblue; width: 50px; height: 50px; margin-bottom: -30px; margin-top: -20px;"> item 2 </div> <div class="orthogonal" style="background: lightpink; width: 20px; height: max-content;"> item 4 </div> </div> <div style="grid-column: 3;"> <div style="background: lightblue; height: 20px;"> item 3 </div> <div class="orthogonal" style="background: yellow; height: 20px; width: 50px;"> item 5 </div> </div> </div> </body> </html>