mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
Include the scrollable overflow of a child box if either its parent or child has overflow: visible
(#38443)
Include the scrollable overflow of a child box if either its parent or child has `overflow: visible` **Issue**: For the blocks having property `overflow:hidden`, their scroll overflow is not added to parent's scroll overflow. Causing unable to scroll the parent block aka `Root` block in our Issue #38248 . **Testing**: css/cssom-view/scrolling-quirks-vs-nonquirks.html **Fixes**: #38248 Signed-off-by: Shubham Gupta <shubham13297@gmail.com>
This commit is contained in:
parent
5b148cf5de
commit
dcb90bb85e
5 changed files with 51 additions and 55 deletions
|
@ -79,7 +79,7 @@ impl PositioningFragment {
|
|||
|acc, child| {
|
||||
acc.union(
|
||||
&child
|
||||
.calculate_scrollable_overflow_for_parent()
|
||||
.calculate_scrollable_overflow_for_parent(None)
|
||||
.translate(self.rect.origin.to_vector()),
|
||||
)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue