1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 15:15:08 +00:00
serenity/Tests/LibWeb/Layout/input/grid/item-with-min-width-and-place-self-start.html
Aliaksandr Kalenik d1a01c4c65 LibWeb: Fix box alignment when it has min-width or max-width in GFC
Changing `try_compute_width()` to return width and margins, instead of
mutating them in the box's state makes it works in cases when box has
min-width or max-width and this function needs to be called multiple
times.

Fixes https://github.com/SerenityOS/serenity/issues/21598
2023-10-27 07:14:34 +02:00

20 lines
No EOL
362 B
HTML

<!DOCTYPE html><style>
* {
outline: 1px solid black !important;
}
html {
background: white;
}
body {
display: grid;
background: wheat;
}
section {
display: flex;
width: 100%;
min-width: 500px;
place-self: start;
background: pink;
height: 200px;
}
</style><body><section>