LibWeb: Use computed values in Element::is_potentially_scrollable

`Layout::NodeWithStyle::computed_values()` actually holds used values
which may not be the same as computed values e.g. if they have been
modified by `Document::propagate_overflow_to_viewport()`
This commit is contained in:
Callum Law
2025-12-19 19:13:48 +13:00
committed by Jelle Raaijmakers
parent fd7006956c
commit 665feb57ae
Notes: github-actions[bot] 2026-02-06 10:30:07 +00:00
2 changed files with 10 additions and 11 deletions

View File

@@ -2,13 +2,12 @@ Harness status: OK
Found 8 tests
4 Pass
4 Fail
Fail scrollingElement in quirks mode
8 Pass
Pass scrollingElement in quirks mode
Pass scrollingElement in no-quirks mode
Fail scrollingElement in quirks mode (body table)
Pass scrollingElement in quirks mode (body table)
Pass scrollingElement in no-quirks mode (body table)
Fail scrollingElement in quirks mode (root table)
Pass scrollingElement in quirks mode (root table)
Pass scrollingElement in no-quirks mode (root table)
Fail scrollingElement in quirks mode (root table, body table)
Pass scrollingElement in quirks mode (root table, body table)
Pass scrollingElement in no-quirks mode (root table, body table)