aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/layout/block.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/layout/block.rs b/components/layout/block.rs
index e044c04d3c0..fdfec58e776 100644
--- a/components/layout/block.rs
+++ b/components/layout/block.rs
@@ -1763,6 +1763,8 @@ impl Flow for BlockFlow {
(overflow_x::T::auto, _) | (overflow_x::T::scroll, _) |
(_, overflow_x::T::auto) | (_, overflow_x::T::scroll) => {
self.base.flags.insert(NEEDS_LAYER);
+ self.base.clip = ClippingRegion::max();
+ self.base.stacking_relative_position_of_display_port = MAX_RECT;
}
_ => {}
}