mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:07:34 +00:00
LibWeb: Don't paint children stacking contexts inside the current one
This commit is contained in:
parent
faef523567
commit
495f69b76b
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ StackingContext::StackingContext(Box& box, StackingContext* parent)
|
|||
void StackingContext::paint_descendants(PaintContext& context, Node& box, StackingContextPaintPhase phase)
|
||||
{
|
||||
box.for_each_child([&](auto& child) {
|
||||
if (child.establishes_stacking_context())
|
||||
return;
|
||||
switch (phase) {
|
||||
case StackingContextPaintPhase::BackgroundAndBorders:
|
||||
if (!child.is_floating() && !child.is_positioned()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue