diff --git a/components/layout/flow.rs b/components/layout/flow.rs index bfb0c407d95..2df03d43233 100644 --- a/components/layout/flow.rs +++ b/components/layout/flow.rs @@ -251,13 +251,6 @@ pub trait Flow: fmt::Debug + Sync + Send + 'static { container_size); overflow = overflow.union(&kid_overflow.translate(&kid_position.origin)) } - - for kid in mut_base(self).abs_descendants.iter() { - let kid_overflow = base(kid).overflow; - let kid_position = base(kid).position.to_physical(base(kid).writing_mode, - container_size); - overflow = overflow.union(&kid_overflow.translate(&kid_position.origin)) - } } _ => {} } diff --git a/tests/html/overflow-bug-0.html b/tests/html/overflow-bug-0.html new file mode 100644 index 00000000000..10e2207ca56 --- /dev/null +++ b/tests/html/overflow-bug-0.html @@ -0,0 +1,18 @@ + + + + +