LadybirdBrowser / ladybird

Truly independent web browser
https://ladybird.org
BSD 2-Clause "Simplified" License
22.27k stars 987 forks source link

LibWeb: Stop treating intrinsic size keywords as `auto` in CSS heights #2484

Closed awesomekling closed 1 day ago

awesomekling commented 1 day ago

This commit introduces proper handling of three intrinsic size keywords when used for CSS heights:

This necessitated a few plumbing changes, since we can't resolve these values without having access to containing block widths.

This fixes some visual glitches on https://www.supabase.com/ as well as a number of WPT tests. It also improves the appearance of dialogs.

Before:

Screenshot 2024-11-21 at 17 28 50

After:

Screenshot 2024-11-21 at 17 27 39