mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
LibWeb: Take already computed height for flex container's auto height
Similar to BlockFormattingContext, FlexFormatting context already handles height:auto sizing correctly and sets the content_height correspondingly.
This commit is contained in:
parent
62185452f0
commit
a57bfc2f8c
Notes:
sideshowbarker
2024-07-17 18:13:59 +09:00
Author: https://github.com/skyrising Commit: https://github.com/SerenityOS/serenity/commit/a57bfc2f8c Pull-request: https://github.com/SerenityOS/serenity/pull/13576
1 changed files with 4 additions and 0 deletions
|
@ -204,6 +204,10 @@ float FormattingContext::compute_auto_height_for_block_level_element(FormattingS
|
|||
|
||||
auto const& box_state = state.get(box);
|
||||
|
||||
auto display = box.computed_values().display();
|
||||
if (display.is_flex_inside())
|
||||
return box_state.content_height;
|
||||
|
||||
// https://www.w3.org/TR/CSS22/visudet.html#normal-block
|
||||
// 10.6.3 Block-level non-replaced elements in normal flow when 'overflow' computes to 'visible'
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue