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

LibWeb: Fix intrinsic sizing when min or max width is specified

Fixes the problem that width is incorrectly computed in intrinsic
sizing mode when there are blocks that have min-width or max-width
specified.

Actually that is just the fix of a symptom of the larger problem that
Length::to_px() returns 0 when value is auto regardless of available
size.
This commit is contained in:
Aliaksandr Kalenik 2023-05-02 17:20:10 +03:00 committed by Andreas Kling
parent 9bd35fda56
commit f6ff37398c
3 changed files with 26 additions and 2 deletions

View file

@ -0,0 +1,5 @@
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (1,1) content-size 798x52 children: not-inline
BlockContainer <body> at (10,10) content-size 104x34 floating children: not-inline
BlockContainer <div.outer> at (11,11) content-size 102x32 children: not-inline
BlockContainer <div.inner> at (12,12) content-size 100x30 children: not-inline