layout: Fix scrollParent to skip ancestors with display: contents (#39153)

When encountering such an ancestor, we were returning null instead of
skipping it.

Testing: Adding new subtest for this. And while I'm at it, another one
for the root element, unrelated to this fix.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2025-09-05 16:49:21 +02:00 committed by GitHub
parent cf1f64e73f
commit 0f9f507b46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 4 deletions

View file

@ -630047,7 +630047,7 @@
]
],
"scrollParent.html": [
"344ee522ef2664e0b963e79812074f08f343f5bf",
"b1c6898af349691d357a3d39cc8fd8e578612d94",
[
null,
{}