mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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:
parent
07f6d783a3
commit
811c08c5a5
3 changed files with 22 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue