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
Fixes a couple of bikeshed errors in this file:
* Missing indentation on newline in ordered list
* Duplicate definitions for "scroll completed"
* Missing definition for "scrolling box"
* Wrong type for "scrollend" links
* Missing definition for "pending scrollend event targets"
Copy file name to clipboardExpand all lines: cssom-view-1/Overview.bs
+8-6
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ An element <var>body</var> (which will be <a>the <code>body</code> element</a>)
98
98
Note: A <{body}> element that is <a>potentially scrollable</a> might not have a <a>scrolling box</a>.
99
99
For instance, it could have a used value of 'overflow' being ''overflow/auto'' but not have its content overflowing its content area.
100
100
101
-
A <a>scrolling box</a> of a <a>viewport</a> or element has two <dfn>overflow directions</dfn>, which are the <a>block-end</a> and <a>inline-end</a> directions for that viewport or element.
101
+
A <dfn>scrolling box</dfn> of a <a>viewport</a> or element has two <dfn>overflow directions</dfn>, which are the <a>block-end</a> and <a>inline-end</a> directions for that viewport or element.
102
102
Note that the initial scroll position might not be aligned with the [=scrolling area origin=]
103
103
depending on the [=content-distribution properties=], see [[css-align-3#overflow-scroll-position]].
104
104
@@ -337,8 +337,8 @@ the following steps must be run:
337
337
'scroll-behavior' property is ''scroll-behavior/smooth''
338
338
<li><var>behavior</var> is <code>smooth</code>
339
339
</ul>
340
-
...then perform a <a>smooth scroll</a> of <var>box</var> to <var>position</var>. Once the position has finished updating, emit the <a>scrollend</a> event.
341
-
Otherwise, perform an <a>instant scroll</a> of <var>box</var> to <var>position</var>. After an <a>instant scroll</a> emit the <a>scrollend</a> event.
340
+
...then perform a <a>smooth scroll</a> of <var>box</var> to <var>position</var>. Once the position has finished updating, emit the <a event>scrollend</a> event.
341
+
Otherwise, perform an <a>instant scroll</a> of <var>box</var> to <var>position</var>. After an <a>instant scroll</a> emit the <a event>scrollend</a> event.
342
342
</ol>
343
343
344
344
Scroll is <dfn lt="scroll completed">completed</dfn> when the scroll position has no more pending updates or translations. This includes smooth or instant mouse wheel scrolling, keyboard scrolling, scroll-snap events, or other APIs and gestures which cause the scroll position to update and possibly interpolate.
@@ -1669,6 +1669,8 @@ This section integrates with the <a for=/>event loop</a> defined in HTML. [[!HTM
1669
1669
1670
1670
Each {{Document}} has an associated list of <dfn for=Document>pending scroll event targets</dfn>, initially empty.
1671
1671
1672
+
Each {{Document}} has an associated list of <dfn for=Document>pending scrollend event targets</dfn>, initially empty.
1673
+
1672
1674
Whenever a <a>viewport</a> gets scrolled (whether in response to user interaction or by an API), the user agent must run these steps:
1673
1675
1674
1676
1. Let <var>doc</var> be the <a>viewport’s</a> associated {{Document}}.
@@ -1693,7 +1695,7 @@ When asked to <dfn export for=Document>run the scroll steps</dfn> for a {{Docume
1693
1695
Whenever scrolling is <a lt="scroll completed">completed</a>, the user agent must run these steps:
1694
1696
1695
1697
1. If scrolling was done on a <a>viewport</a>, let <var>doc</var> be the <a>viewport’s</a> associated {{Document}} and <var>target</var> be the <a>viewport</a>.
1696
-
Otherwise, scrolling is done on an element and let <var>doc</var> be the element's <a>node document</a> and <var>target</var> be the element.
1698
+
Otherwise, scrolling is done on an element and let <var>doc</var> be the element's <a>node document</a> and <var>target</var> be the element.
1697
1699
1. If <var>target</var> is already in <var>doc</var>'s <a>pending scrollend event targets</a>, abort these steps.
1698
1700
1. Append <var>target</var> to <var>doc</var>'s <a>pending scrollend event targets</a>.
1699
1701
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:
@@ -1728,7 +1730,7 @@ Otherwise, scrolling is done on an element and let <var>doc</var> be the element
<td>Fired at the {{Document}} or element when scroll is <dfn lt="scroll completed">completed</dfn>: the <a>viewport</a> or element has been scrolled, the scroll sequence has ended and any scroll offset changes have been applied.
1733
+
<td>Fired at the {{Document}} or element when scroll is <a lt="scroll completed">completed</a>: the <a>viewport</a> or element has been scrolled, the scroll sequence has ended and any scroll offset changes have been applied.
1732
1734
</table>
1733
1735
1734
1736
@@ -1748,7 +1750,7 @@ This section documents some of the changes between publications of this specific
1748
1750
generally not listed.
1749
1751
1750
1752
<h3 id='changes-from-2022-06-22' class=no-num>Changes From 22 June 2022</h3>
1751
-
* Adam Argyle moved the 'scrollend' event from <a href="https://wicg.github.io/overscroll-scrollend-events/">WICG 'overscroll-scrollend-events'</a> to [[CSSOM-VIEW-1]]
1753
+
* Adam Argyle moved the <a event>scrollend</a> event from <a href="https://wicg.github.io/overscroll-scrollend-events/">WICG overscroll-scrollend-events</a> to [[CSSOM-VIEW-1]]
1752
1754
1753
1755
<h3 id='changes-from-2020-10-19' class=no-num>Changes From 19 October 2020</h3>
1754
1756
* Added the "Security and Privacy Considerations" section
0 commit comments