Commit Graph

1 Commits

Author SHA1 Message Date
Andreas Kling
c871c56178 Tests: Add IntersectionObserver test for scroll margin
Add a test that creates two observers watching the same target inside
an overflow:hidden container: one without scroll margin and one with
scrollMargin "50px". The target is partially visible (10px out of 50px).

Without scroll margin, the ratio is ~0.19 (10px visible / 50px target).
With scroll margin, the expanded scrollport should make the full target
visible (ratio=1), but currently both report the same ratio because
scroll margin is not yet applied in compute_intersection.
2026-03-22 14:09:22 -05:00