mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00

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/
12 lines
No EOL
280 B
HTML
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> |