mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 15:07:44 +00:00
LibWeb: Resolve % min-sizes against 0 while under min-content constraint
When resolving a percentage min-width or min-height size against a containing block currently under a min-content constraint, we should act as if the containing block has zero size in that axis.
This commit is contained in:
parent
1578121dcb
commit
a988241f3f
7 changed files with 43 additions and 24 deletions
|
@ -0,0 +1,4 @@
|
|||
<!DOCTYPE html><style>
|
||||
body { width: min-content; }
|
||||
img { max-width: 100%; }
|
||||
</style><body><img src="120.png">
|
Loading…
Add table
Add a link
Reference in a new issue