Status: FAIL | Duration: 13ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-lanes/alignment/column-overflow-alignment-001.html
<!DOCTYPE html> <html> <link rel="help" href="https://drafts.csswg.org/css-grid-3"> <link rel="match" href="column-overflow-alignment-001-ref.html"> <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com"> <style> .grid-lanes { display: grid-lanes; background: gray; position: relative; flow-tolerance: 0; grid-template-columns: 50px; justify-items: unsafe center; width: 50px; } .overflow-safe { justify-self: safe end; width: 75px; height: 50px; background-color: lightgreen; } .overflow-unsafe { justify-self: unsafe end; width: 75px; height: 50px; background-color: lightblue; } .small-item { width: 25px; background-color: lightyellow; } </style> <body> <p>Test that overflow safe and unsafe are working as expected. <div class="grid-lanes"> <div class="overflow-safe"> Overflow safe </div> <div style="width: 50px; background-color: lightpink;"> Regular item </div> <div class="overflow-unsafe"> Overflow unsafe </div> <div class="small-item"> Small item </div> <div style="width: 150px; background-color: brown"> Overflow center </div> </div> </body> </html>
/css/css-grid/grid-lanes/alignment/column-overflow-alignment-001-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; position: relative; grid-template-columns: 50px; justify-items: unsafe center; width: 50px; } .overflow-safe { justify-self: safe end; width: 75px; height: 50px; background-color: lightgreen; } .overflow-unsafe { justify-self: unsafe flex-end; width: 75px; height: 50px; background-color: lightblue; } .small-center-item { width: 25px; background-color: lightyellow; } </style> <body> <p>Test that overflow safe and unsafe are working as expected. <div class="grid"> <div class="overflow-safe"> Overflow safe </div> <div style="width: 50px; background-color: lightpink;"> Regular item </div> <div class="overflow-unsafe"> Overflow unsafe </div> <div class="small-center-item"> Small item </div> <div style="width: 150px; background-color: brown"> Overflow center </div> </div> </body> </html>