You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cssom-view-1/Overview.bs
+41-27Lines changed: 41 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -2304,9 +2304,7 @@ When asked to <dfn export for=Document>run the resize steps</dfn> for a {{Docume
2304
2304
2305
2305
This section integrates with the <a for=/>event loop</a> defined in HTML. [[!HTML]]
2306
2306
2307
-
Each {{Document}} has an associated list of <dfn for=Document>pending scroll event targets</dfn>, initially empty.
2308
-
2309
-
Each {{Document}} has an associated list of <dfn for=Document>pending scrollend event targets</dfn>, initially empty.
2307
+
Each {{Document}} has an associated list of <dfn for=Document>pending scroll events</dfn>, which stores pairs of ({{EventTarget}}, {{DOMString}}), initially empty.
2310
2308
2311
2309
Whenever a <a>viewport</a> gets scrolled (whether in response to user interaction or by an API), the user agent must run these steps:
2312
2310
@@ -2316,8 +2314,8 @@ Whenever a <a>viewport</a> gets scrolled (whether in response to user interactio
2316
2314
for <var>doc</var> with <var>doc</var>'s <a spec="css-scroll-snap-2">eventual snap target</a> in the block axis
2317
2315
as newBlockTarget and <var>doc</var>'s <a spec="css-scroll-snap-2">eventual snap target</a> in the inline axis
2318
2316
as newInlineTarget.
2319
-
1. If <var>doc</var>is already in <var>doc</var>'s <a>pending scroll event targets</a>, abort these steps.
1. Run the steps to <a spec="css-scroll-snap-2">dispatch pending scrollsnapchange events</a> for <var>doc</var>.
2350
-
2351
-
Whenever scrolling is <a lt="scroll completed">completed</a>, the user agent must run these steps:
2352
-
2353
2340
Issue: In what order are scrollend events dispatched? Ordered based on scroll start or scroll completion?
2354
2341
2355
2342
1. For each scrolling box <var>box</var> that was scrolled:
@@ -2358,13 +2345,40 @@ Issue: In what order are scrollend events dispatched? Ordered based on scroll st
2358
2345
be the {{VisualViewport}}. Otherwise, <var>box</var> belongs to an element and let <var>doc</var> be the element's <a>node document</a> and <var>target</var> be the element.
2359
2346
1. If <var>box</var> belongs to a <a spec=css-scroll-snap lt="scroll snap container">snap container</a>, |snapcontainer|,
2360
2347
run the <a spec=css-scroll-snap-2 lt="update scrollsnapchange targets">update scrollsnapchange targets</a> steps for |snapcontainer|.
2361
-
1. If <var>target</var> is already in <var>doc</var>'s <a>pending scrollend event targets</a>, abort these steps.
2362
-
1. Append <var>target</var> to <var>doc</var>'s <a>pending scrollend event targets</a>.
2363
-
1. Run the steps to <a spec="css-scroll-snap-2">dispatch pending scrollsnapchange targets</a> for <var>doc</var>.
2364
-
1. For each item <var>target</var> in <var>doc</var>'s <a>pending scrollend event targets</a>, in the order they were added to the list, run these substeps:
2365
-
1. If <var>target</var> is a {{Document}}, <a>fire an event</a> named <a event>scrollend</a> that bubbles at <var>target</var>.
2366
-
1. Otherwise, <a>fire an event</a> named <a event>scrollend</a> at <var>target</var>.
0 commit comments