1
Fork 0
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:
Egor Ananyin 2021-07-23 13:16:04 +03:00 committed by Ali Mohammad Pur
parent faef523567
commit 495f69b76b

View file

@ -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()) {