Status: FAIL | Duration: 22ms | 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-001.html
<!DOCTYPE html> <html> <link rel="help" href="https://drafts.csswg.org/css-grid-3"> <link rel="match" href="column-negative-margin-001-ref.html"> <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com"> <style> .grid-lanes { display: grid-lanes; flow-tolerance: 0; grid-template-columns: 50px; } </style> <body> <p>When an item with negative margins is placed, ensure that the margin is properly clamped and doesn't cause the running position to regress.</p> <div class="grid-lanes"> <div style="background: aquamarine; height: 50px;" > item 1 </div> <div style="background: aquamarine; height: 50px;" > item 2 </div> <div style="background: aquamarine; height: 50px;" > item 3 </div> <div style="background: lightblue; height: 50px; margin-top: -100px;" > item 4 </div> <div style="background: lightpink; height: 50px;"> item 5 </div> </div> </body> </html>
/css/css-grid/grid-lanes/item-placement/column-negative-margin-001-ref.html
<!DOCTYPE html> <html> <style> </style> <body> <p>When an item with negative margins is placed, ensure that the margin is properly clamped and doesn't cause the running position to regress.</p> <div class="grid-lanes"> <div style="display: flex; flex-direction: column; width: 50px;"> <div style="background: aquamarine; height: 50px;" > item 1 </div> <div style="background: lightblue; height: 50px;" > item 4 </div> <div style="background: aquamarine; height: 50px;" > item 3 </div> <div style="background: lightpink; height: 50px;"> item 5 </div> </div> </body> </html>