summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Layout/LayoutNode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibWeb/Layout/LayoutNode.cpp')
-rw-r--r--Libraries/LibWeb/Layout/LayoutNode.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibWeb/Layout/LayoutNode.cpp b/Libraries/LibWeb/Layout/LayoutNode.cpp
index 75708df343..018be1ef71 100644
--- a/Libraries/LibWeb/Layout/LayoutNode.cpp
+++ b/Libraries/LibWeb/Layout/LayoutNode.cpp
@@ -94,8 +94,9 @@ void LayoutNode::render(RenderingContext& context)
if (!is_visible())
return;
- // TODO: render our border
for_each_child([&](auto& child) {
+ if (child.is_box() && to<LayoutBox>(child).stacking_context())
+ return;
child.render(context);
});
}