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:
parent
1bb4e5c428
commit
8ba7bd1b67
3 changed files with 30 additions and 0 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue