1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 00:45:07 +00:00
serenity/Tests/LibWeb/Layout/input/block-and-inline/block-with-fit-content-width-constraints.html
Andreas Kling 8ba7bd1b67 LibWeb: Accept fit-content as a value for min-width and max-width
This starts working immediately in BFC thanks to calculate_inner_width
being used for width constraints. :^)
2023-05-27 05:47:54 +02:00

13 lines
303 B
HTML

<!doctype html><style>
* { border: 1px solid black; }
.box {
background: orange;
min-width: fit-content;
width: 10px;
}
.box2 {
background: pink;
max-width: fit-content;
width: 1000px;
}
</style><div class="box">Well hello friends</div><div class="box2">Well hello friends</div>