1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00
serenity/Tests/LibWeb/Layout/input/block-and-inline/abspos-grid-with-definite-width.html
Aliaksandr Kalenik eac7916d2c LibWeb: Use inner available space to calculate auto height of abspos
By using available_inner_space_or_constraints_from(available_space), we
ensure that the available space used to calculate the min/max content
height is constrained by the width specified for the box itself
(I know that at least GFC always expects available width to be
constrained by specified width if there is any).

This change improves layout in "Recent news" block on
https://telegram.org/
2023-11-15 11:26:14 +01:00

12 lines
No EOL
280 B
HTML

<!DOCTYPE html><style>
* {
border: 1px solid black;
}
.box {
width: 200px;
position: absolute;
left: 0;
display: grid;
background-color: magenta;
}
</style><div class="box">Giveaways in Channels and Free Premium Giveaways in Channels and Free Premium</div>