Status: PASS | Duration: 8ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-items/grid-item-border-padding-002.html
<!DOCTYPE html> <link rel="help" href="https://drafts.csswg.org/css-grid-1/"> <link rel="match" href="grid-item-border-padding-002-ref.html"> <style> .grid { display: grid; width: 100px; height: 100px; grid-template-columns: 100px; grid-template-rows: 100px; padding: 10px; outline: 1px solid black; } .item { width: 50px; height: 50px; grid-row: 1/2; background-color: green; } </style> <p>Test passes if the green box is inset by the padding from the outline.</p> <div class="grid"> <div class="item"></div> </div>
/css/css-grid/grid-items/grid-item-border-padding-002-ref.html
<!DOCTYPE html> <p>Test passes if the green box is inset by the padding from the outline.</p> <div style="width: 100px; height: 100px; padding: 10px; outline: 1px solid black;"> <div style="width: 50px; height: 50px; background-color: green;"></div> </div>