Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-items/grid-item-direction-rtl-001.html
<!DOCTYPE html> <link rel="help" href="https://drafts.csswg.org/css-grid-1/"> <link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#direction"> <link rel="match" href="grid-item-direction-rtl-001-ref.html"> <style> .grid { display: grid; width: 100px; height: 100px; direction: rtl; grid-template-columns: 100px; grid-template-rows: 100px; } .item { width: 50px; height: 50px; grid-row: 1/2; background-color: green; } </style> <p>Test passes if there is a 50x50 green box on the right side of a 100x100 area.</p> <div class="grid"> <div class="item"></div> </div>
/css/css-grid/grid-items/grid-item-direction-rtl-001-ref.html
<!DOCTYPE html> <p>Test passes if there is a 50x50 green box on the right side of a 100x100 area.</p> <div style="width: 100px; height: 100px;"> <div style="width: 50px; height: 50px; background-color: green; margin-left: auto;"></div> </div>