mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27:45 +00:00
LibWeb: Don't insert inline nodes directly under inline-flex container
Yet another legacy "is inline-block?" condition was causing us to insert inline nodes directly as children of inline-flex containers (instead of wrapping them in anonymous blocks, which would then cause them to become flex items.)
This commit is contained in:
parent
90b66533d0
commit
913d9221aa
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ static bool has_in_flow_block_children(Layout::Node const& layout_node)
|
||||||
|
|
||||||
static Layout::Node& insertion_parent_for_inline_node(Layout::NodeWithStyle& layout_parent)
|
static Layout::Node& insertion_parent_for_inline_node(Layout::NodeWithStyle& layout_parent)
|
||||||
{
|
{
|
||||||
if (layout_parent.is_inline() && !layout_parent.is_inline_block())
|
if (layout_parent.display().is_inline_outside() && layout_parent.display().is_flow_inside())
|
||||||
return layout_parent;
|
return layout_parent;
|
||||||
|
|
||||||
if (layout_parent.display().is_flex_inside()) {
|
if (layout_parent.display().is_flex_inside()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue