mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
When resolving percentage heights/widths against the containing block, we walk past anonymous boxes to find the relevant ancestor. However, anonymous table cells are proper containing blocks with their own sizing semantics. Walking past them caused us to reach the viewport and incorrectly resolve percentages against the viewport size. Fix this in all affected places in FormattingContext: - should_treat_height_as_auto() - calculate_inner_height() - should_treat_max_height_as_none() - should_treat_max_width_as_none() - compute_inset() percentage-as-auto check - solve_replaced_size_constraint() - compute_height_for_replaced_element()