Status: PASS | Duration: 4ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/abspos/grid-abspos-staticpos-align-self-end.html
<!DOCTYPE html> <html> <head> <link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos"> <link rel="help" href="https://www.w3.org/TR/css-position-3/#staticpos-rect"> <link rel="match" href="grid-abspos-staticpos-align-self-end-ref.html" <meta name="assert" content="Abspos child of grid is aligned to end of grid content box when statically positioned and end self alignment."> <style> .grid { display: grid; border: 1px solid black; width: 100px; height: 100px; } .abspos { position: absolute; width: 50px; height: 50px; background-color: green; align-self: end; } </style> </head> <body> <div class="grid"> <div class="abspos"></div> </div> </body> </html>
/css/css-grid/abspos/grid-abspos-staticpos-align-self-end-ref.html
<!DOCTYPE html> <html> <style> .grid { display: grid; border: 1px solid black; width: 100px; height: 100px; } .item { width: 50px; height: 50px; background-color: green; align-self: end; } </style> <body> <div class="grid"> <div class="item"></div> </div> </body> </html>