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:
Shubham Gupta 2025-08-06 15:46:54 +08:00 committed by GitHub
parent 5b148cf5de
commit dcb90bb85e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 51 additions and 55 deletions

View file

@ -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()),
)
},