ladybird/Base
Andreas Kling 80ce0419b6 LibWeb: Fix abspos flex container with height:auto getting zero height
When laying out abspos boxes, we compute the height twice: before and
after the inside of the box has been laid out.

The first pass allows percentage vertical values inside the box to be
resolved against the box's height. The second pass resolves the final
used value for the height of the box itself.

In cases where the box height depends on the results of inside layout,
we were incorrectly setting the box to having a definite zero height.
This led to incorrect results when sizing an abspos flex container,
since the FFC sizes containers (in row layouts) based on whether the
container has a definite height.

To avoid this problem, this patch adds an enum so we can differentiate
between the two abspos height computation passes. If the first pass
discovers a dependency on the inside layout, we simply bail out of
computing the height, leaving it as indefinite. This allows the FFC
to size its container correctly, and the correct height gets set by
the second pass.
2023-01-06 21:12:55 +01:00
..
bin Userland: Add more(1) emulation to less(1) 2021-07-07 20:01:15 +04:30
etc Base: Remove some old, not particularly useful aliases from .shellrc 2023-01-05 13:05:13 +00:00
home/anon Browser: Escape question marks for google.com urls in content filter 2022-12-27 07:28:25 +03:30
res LibWeb: Fix abspos flex container with height:auto getting zero height 2023-01-06 21:12:55 +01:00
root Base: Remove UserspaceEmulator from the list of manual pages to verify 2022-12-28 11:53:41 +01:00
usr Kernel: Make i8042 controller initialization sequence more robust 2023-01-06 11:09:56 +01:00
www Base: Improve default WebServer pages 2022-02-23 21:28:17 +00:00
.gitignore Meta: Don't generate emoji.txt into the source tree 2022-09-05 09:50:31 -04:00