From d8bbc7858622b6d9c278469aab701ca0b609cddf Mon Sep 17 00:00:00 2001
From: Daniel Baumann
Date: Wed, 15 May 2024 05:35:49 +0200
Subject: Merging upstream version 126.0.
Signed-off-by: Daniel Baumann
---
.../snapchanged-after-layout-change.tentative.html | 12 +--
.../snapchanged/snapchanged-ensures-dom-order.html | 95 ----------------------
...nged-on-programmatic-root-scroll.tentative.html | 4 +-
...apchanged-on-programmatic-scroll.tentative.html | 4 +-
.../snapchanged-on-user-root-scroll.tentative.html | 10 ++-
.../snapchanged-on-user-scroll.tentative.html | 10 ++-
...hanged-with-proximity-strictness.tentative.html | 4 +-
7 files changed, 24 insertions(+), 115 deletions(-)
delete mode 100644 testing/web-platform/tests/css/css-scroll-snap-2/snapchanged/snapchanged-ensures-dom-order.html
(limited to 'testing/web-platform/tests/css/css-scroll-snap-2/snapchanged')
diff --git a/testing/web-platform/tests/css/css-scroll-snap-2/snapchanged/snapchanged-after-layout-change.tentative.html b/testing/web-platform/tests/css/css-scroll-snap-2/snapchanged/snapchanged-after-layout-change.tentative.html
index 4272412073..a3ba05fdf5 100644
--- a/testing/web-platform/tests/css/css-scroll-snap-2/snapchanged/snapchanged-after-layout-change.tentative.html
+++ b/testing/web-platform/tests/css/css-scroll-snap-2/snapchanged/snapchanged-after-layout-change.tentative.html
@@ -81,7 +81,7 @@
inner_snap_area.style.height =
`${scroller.clientHeight + inner_snap_area.clientHeight - 10}px`;
const evt = await snapchanged_promise;
- assertSnapEventDeprecated(evt, [outer_snap_area.id, inner_snap_area.id]);
+ assertSnapEvent(evt, { block: inner_snap_area, inline: null });
target_snap_position = inner_snap_area.offsetTop +
inner_snap_area.offsetHeight - scroller.clientHeight;
assert_equals(scroller.scrollTop, target_snap_position,
@@ -107,7 +107,7 @@
inner_snap_area.style.height =
`${scroller.clientHeight + inner_snap_area.clientHeight + 10}px`;
const evt = await snapchanged_promise;
- assertSnapEventDeprecated(evt, [outer_snap_area.id, inner_snap_area.id]);
+ assertSnapEvent(evt, { block: inner_snap_area, inline: null });
assert_equals(scroller.scrollTop, target_snap_position,
"scroller maintains offset which is now covering within inner area");
}, "snapchanged fires after snap area is snapped to upon layout change " +
@@ -119,11 +119,11 @@
let snapchanged_promise = waitForSnapChangedEvent(scroller, false);
scroller.style.scrollSnapType = "none";
let evt = await snapchanged_promise;
- assertSnapEventDeprecated(evt, []);
+ assertSnapEvent(evt, { block: null, inline: null });
snapchanged_promise = waitForSnapChangedEvent(scroller, false);
scroller.style.scrollSnapType = "y mandatory";
evt = await snapchanged_promise;
- assertSnapEventDeprecated(evt, [outer_snap_area.id]);
+ assertSnapEvent(evt, { block: outer_snap_area, inline: null });
}, "snapchanged fires when container stops snapping");
promise_test(async(t) => {
@@ -133,12 +133,12 @@
inner_snap_area.style.scrollSnapAlign = "none";
outer_snap_area.style.scrollSnapAlign = "none";
let evt = await snapchanged_promise;
- assertSnapEventDeprecated(evt, []);
+ assertSnapEvent(evt, { block: null, inline: null });
snapchanged_promise = waitForSnapChangedEvent(scroller, false);
inner_snap_area.style.scrollSnapAlign = "start";
outer_snap_area.style.scrollSnapAlign = "start";
evt = await snapchanged_promise;
- assertSnapEventDeprecated(evt, [outer_snap_area.id]);
+ assertSnapEvent(evt, { block: outer_snap_area, inline: null });
}, "snapchanged fires when snap container no longer has snap areas");
-
-
-
diff --git a/testing/web-platform/tests/css/css-scroll-snap-2/snapchanged/snapchanged-ensures-dom-order.html b/testing/web-platform/tests/css/css-scroll-snap-2/snapchanged/snapchanged-ensures-dom-order.html
deleted file mode 100644
index f87b6137f1..0000000000
--- a/testing/web-platform/tests/css/css-scroll-snap-2/snapchanged/snapchanged-ensures-dom-order.html
+++ /dev/null
@@ -1,95 +0,0 @@
-
-
-
-