mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 10:47:34 +00:00

Grid items should respect alignment properties if top/right/bottom/left are not specified. This change adds a separate implementation of layout_absolutely_positioned_element that is extended with support for alignment.
19 lines
No EOL
326 B
HTML
19 lines
No EOL
326 B
HTML
<!DOCTYPE html><style type="text/css">
|
|
* {
|
|
border: 1px solid black;
|
|
}
|
|
|
|
.container {
|
|
position: relative;
|
|
display: grid;
|
|
place-items: center;
|
|
height: 200px;
|
|
width: 200px;
|
|
}
|
|
|
|
.box {
|
|
position: absolute;
|
|
height: 100px;
|
|
width: 100px;
|
|
}
|
|
</style><div class="container"><div class="box"></div></div> |