Status: FAIL | Duration: 17ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-lanes/baseline/column-grid-lanes-container-baseline-006c.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS Grid Lanes Test: align-items:last baseline with negative margin and dense packing</title> <link rel="author" title="Yanling Wang" href="yanlingwang@microsoft.com"> <link rel="help" href="https://drafts.csswg.org/css-grid-3/#masonry-baseline-alignment"> <link rel="match" href="column-grid-lanes-container-baseline-006c-ref.html"> <link rel="stylesheet" href="/fonts/ahem.css"> <style> .container { display: flex; gap: 20px; border: 2px solid blue; padding: 10px; font: 16px/1 Ahem; width: 900px; align-items: last baseline; } .grid-lanes { display: grid-lanes; grid-template-columns: repeat(4, 80px); grid-auto-flow: dense; grid-lanes-pack: dense; gap: 10px; background: #f0f0f0; } .grid-lanes-item { background: lightblue; padding: 6px; font-size: 14px; text-decoration: underline; } .text-reference { background: yellow; font-size: 10px; padding: 8px; width: 80px; height: 10px; text-decoration: underline; } .grid-lanes-item:nth-child(1) { grid-column: 1 / 3; height: 70px; font-size: 20px; background: salmon; } .grid-lanes-item:nth-child(2) { grid-column: 2 / 4; height: 60px; background: plum; } .grid-lanes-item:nth-child(3) { grid-column: 3 / 4; height: 10px; font-size: 10px; background: peachpuff; } .grid-lanes-item:nth-child(4) { height: 100px; font-size: 10px; background: turquoise; margin-bottom: -80px; display: flex; align-items: end; } .grid-lanes-item:nth-child(5) { height: 20px; font-size: 10px; background: lightgreen; } .grid-lanes-item:nth-child(6) { height: 30px; font-size: 10px; background: lightpink; } </style> </head> <body> <div class="container"> <div class="text-reference">Reference</div> <div class="grid-lanes"> <div class="grid-lanes-item">Item 1</div> <div class="grid-lanes-item"></div> <div class="grid-lanes-item"></div> <div class="grid-lanes-item">Item 4</div> <div class="grid-lanes-item">Item 5</div> <div class="grid-lanes-item">Item 6</div> </div> </div> </body> </html>
/css/css-grid/grid-lanes/baseline/column-grid-lanes-container-baseline-006c-ref.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="/fonts/ahem.css"> <style> .container { display: flex; gap: 20px; border: 2px solid blue; padding: 10px; font: 16px/1 Ahem; width: 900px; text-decoration: underline; position: relative; } .reference-container { margin-left: 116px; width: 350px; background: #f0f0f0; height: 164px; position: relative; } .reference-item { background: lightblue; padding: 6px; font-size: 14px; position: absolute; box-sizing: border-box; text-decoration: underline; } .text-reference { background: yellow; font-size: 10px; width: 80px; height: 10px; padding: 8px; position: absolute; text-decoration: underline; } .reference-item:nth-child(1) { height: 82px; font-size: 20px; background: salmon; top: 0; left: 0; width: 170px; } .reference-item:nth-child(2) { height: 72px; background: plum; top: 92px; left: 90px; width: 170px; } .reference-item:nth-child(3) { height: 22px; font-size: 10px; background: peachpuff; top: 0; left: 180px; width: 80px; } .reference-item:nth-child(4) { height: 112px; font-size: 10px; background: turquoise; top: 0; left: 270px; width: 80px; display: flex; align-items: end; } .reference-item:nth-child(5) { height: 32px; font-size: 10px; background: lightgreen; left: 180px; width: 80px; top: 32px; } .reference-item:nth-child(6) { height: 42px; font-size: 10px; background: lightpink; top: 42px; left: 270px; width: 80px; } </style> </head> <body> <div class="container"> <div class="text-reference" style="top: 50px; left: 10px;">Reference</div> <div class="reference-container"> <div class="reference-item">Item 1</div> <div class="reference-item"></div> <div class="reference-item"></div> <div class="reference-item">Item 4</div> <div class="reference-item">Item 5</div> <div class="reference-item">Item 6</div> </div> </div> </body> </html>