1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:47: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:
Aliaksandr Kalenik 2023-08-18 02:06:22 +02:00 committed by Andreas Kling
parent 0cda97b852
commit 37bd216c52
3 changed files with 29 additions and 0 deletions

View file

@ -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