Status: PASS | Duration: 8ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/alignment/grid-justify-content-space-between-001.html
<!DOCTYPE html> <link rel="help" href="https://drafts.csswg.org/css-grid-1/"> <link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-content"> <link rel="match" href="grid-justify-content-space-between-001-ref.html"> <style> .grid { display: grid; width: 100px; height: 50px; grid-template-columns: 25px 25px; grid-template-rows: 50px; justify-content: space-between; } .item1 { width: 25px; height: 50px; grid-row: 1/2; grid-column: 1/2; background-color: green; } .item2 { width: 25px; height: 50px; grid-row: 1/2; grid-column: 2/3; background-color: green; } </style> <p>Test passes if there are two green boxes at the left and right edges of a 100px-wide area.</p> <div class="grid"> <div class="item1"></div> <div class="item2"></div> </div>
/css/css-grid/alignment/grid-justify-content-space-between-001-ref.html
<!DOCTYPE html> <p>Test passes if there are two green boxes at the left and right edges of a 100px-wide area.</p> <div style="width: 100px; height: 50px; display: flex; justify-content: space-between;"> <div style="width: 25px; height: 50px; background-color: green;"></div> <div style="width: 25px; height: 50px; background-color: green;"></div> </div>