1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +00:00

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. :^)
This commit is contained in:
Andreas Kling 2023-05-26 19:08:28 +02:00
parent 1bb4e5c428
commit 8ba7bd1b67
3 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,13 @@
<!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>