Skip to content

Commit a716e35

Browse files
authored
Merge pull request #7470 from bokand/fixErrors
[cssom-view-1] editorial: Fix linking errors
2 parents ef5347e + 3847225 commit a716e35

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

cssom-view-1/Overview.bs

+8-6
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ An element <var>body</var> (which will be <a>the <code>body</code> element</a>)
9999
Note: A <{body}> element that is <a>potentially scrollable</a> might not have a <a>scrolling box</a>.
100100
For instance, it could have a used value of 'overflow' being ''overflow/auto'' but not have its content overflowing its content area.
101101

102-
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.
102+
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.
103103
Note that the initial scroll position might not be aligned with the [=scrolling area origin=]
104104
depending on the [=content-distribution properties=], see [[css-align-3#overflow-scroll-position]].
105105

@@ -357,8 +357,8 @@ the following steps must be run:
357357
'scroll-behavior' property is ''scroll-behavior/smooth''
358358
<li><var>behavior</var> is <code>smooth</code>
359359
</ul>
360-
...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.
361-
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.
360+
...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.
361+
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.
362362
</ol>
363363

364364
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.
@@ -1771,6 +1771,8 @@ This section integrates with the <a for=/>event loop</a> defined in HTML. [[!HTM
17711771

17721772
Each {{Document}} has an associated list of <dfn for=Document>pending scroll event targets</dfn>, initially empty.
17731773

1774+
Each {{Document}} has an associated list of <dfn for=Document>pending scrollend event targets</dfn>, initially empty.
1775+
17741776
Whenever a <a>viewport</a> gets scrolled (whether in response to user interaction or by an API), the user agent must run these steps:
17751777

17761778
1. Let <var>doc</var> be the <a>viewport’s</a> associated {{Document}}.
@@ -1796,7 +1798,7 @@ When asked to <dfn export for=Document>run the scroll steps</dfn> for a {{Docume
17961798
Whenever scrolling is <a lt="scroll completed">completed</a>, the user agent must run these steps:
17971799

17981800
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>.
1799-
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.
1801+
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.
18001802
1. If <var>target</var> is already in <var>doc</var>'s <a>pending scrollend event targets</a>, abort these steps.
18011803
1. Append <var>target</var> to <var>doc</var>'s <a>pending scrollend event targets</a>.
18021804
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:
@@ -1833,7 +1835,7 @@ Otherwise, scrolling is done on an element and let <var>doc</var> be the element
18331835
<td><dfn event for="Document, Element">scrollend</dfn>
18341836
<td>{{Event}}
18351837
<td>{{Document}}, elements
1836-
<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.
1838+
<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.
18371839
</table>
18381840

18391841

@@ -1857,7 +1859,7 @@ generally not listed.
18571859
* Pinch zoom is now renamed to <a>scale factor</a>
18581860

18591861
<h3 id='changes-from-2022-06-22' class=no-num>Changes From 22 June 2022</h3>
1860-
* 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]]
1862+
* 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]]
18611863

18621864
<h3 id='changes-from-2020-10-19' class=no-num>Changes From 19 October 2020</h3>
18631865
* Added the "Security and Privacy Considerations" section

0 commit comments

Comments
 (0)