layout_2020: Use the containing block more when calculating scrolling overflow

When calculating scrolling overflow calculation we cannot currently use
the actual containing block in all cases. This change increases the
amount that we do use the containing block.
This commit is contained in:
Martin Robinson 2020-03-23 10:04:41 +01:00
parent 07f6d783a3
commit 811c08c5a5
3 changed files with 22 additions and 14 deletions

View file

@ -163,7 +163,7 @@ impl BoxTreeRoot {
.fragments
.iter()
.fold(PhysicalRect::zero(), |acc, child| {
let child_overflow = child.scrollable_overflow();
let child_overflow = child.scrollable_overflow(&physical_containing_block);
// https://drafts.csswg.org/css-overflow/#scrolling-direction
// We want to clip scrollable overflow on box-start and inline-start