mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:07:45 +00:00
LibWeb: Ignore % max-width if box is sized under max-content constraint
When a box is sized under max-content constraint, any percentage value set for max-width should be considered as if it were infinite. In other words, it should have no effect on restricting the box's width.
This commit is contained in:
parent
0cda97b852
commit
37bd216c52
3 changed files with 29 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
<!doctype html><style>
|
||||
* {
|
||||
outline: 1px solid black;
|
||||
}
|
||||
div {
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 40px;
|
||||
}
|
||||
</style><body><div>New UI
|
Loading…
Add table
Add a link
Reference in a new issue