mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
LibWeb: Never claim that flex containers create a BFC
If a flex item is itself a flex container, we were previously lying when asked if the item created a BFC. It creates an FFC, so stop lying about this in FormattingContext::creates_block_formatting_context().
This commit is contained in:
parent
7c6e42c2d4
commit
a0f3e2c9a2
Notes:
sideshowbarker
2024-07-17 06:32:40 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/a0f3e2c9a2
1 changed files with 2 additions and 0 deletions
|
@ -65,6 +65,8 @@ bool FormattingContext::creates_block_formatting_context(Box const& box)
|
|||
return true;
|
||||
if (is<TableCellBox>(box))
|
||||
return true;
|
||||
if (box.computed_values().display().is_flex_inside())
|
||||
return false;
|
||||
|
||||
CSS::Overflow overflow_x = box.computed_values().overflow_x();
|
||||
if ((overflow_x != CSS::Overflow::Visible) && (overflow_x != CSS::Overflow::Clip))
|
||||
|
|
Loading…
Reference in a new issue