Skip to content

Commit 763e6ce

Browse files
tidoustemilio
authored andcommitted
[cssom-view-1] Fix dfns for events that target VisualViewport
The `resize` and `scroll` event definitions need to be completed to account for the newly introduced `VisualViewport` target. This update also adjusts the firing phrasing related to `VisualViewport` for consistency with the rest of the spec (other alignments are covered in #7466) and fixes a typo.
1 parent c47db82 commit 763e6ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cssom-view-1/Overview.bs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1790,8 +1790,8 @@ When asked to <dfn export for=Document>run the scroll steps</dfn> for a {{Docume
17901790
1. For each item <var>target</var> in <var>doc</var>'s <a>pending scroll event targets</a>,
17911791
in the order they were added to the list, run these substeps:
17921792

1793-
1. If <var>target</var> is a {{Document}}, <a>fire an event</a> named <a event>scroll</a> that bubbles at <var>target</var> and fire an event
1794-
named <a event>scroll</a> at the {{VisualViewport}} that is associated with with <var>target</var>.
1793+
1. If <var>target</var> is a {{Document}}, <a>fire an event</a> named <a event>scroll</a> that bubbles at <var>target</var> and <a>fire an event</a>
1794+
named <a event>scroll</a> at the {{VisualViewport}} that is associated with <var>target</var>.
17951795
1. Otherwise, <a>fire an event</a> named <a event>scroll</a> at <var>target</var>.
17961796
1. Empty <var>doc</var>'s <a>pending scroll event targets</a>.
17971797

@@ -1820,13 +1820,13 @@ Whenever scrolling is <a lt="scroll completed">completed</a>, the user agent mus
18201820
<th>Description
18211821
<tbody>
18221822
<tr>
1823-
<td><dfn event for=Window>resize</dfn>
1823+
<td><dfn event for="Window, VisualViewport">resize</dfn>
18241824
<td>{{Event}}
18251825
<td>{{Window}}, {{VisualViewport}}
18261826
<td>Fired at the {{Window}} when the <a>viewport</a> is resized. Fired at {{VisualViewport}} when the <a>visual viewport</a> is resized
18271827
or the <a>layout viewport</a> is scaled.
18281828
<tr>
1829-
<td><dfn event for="Document, Element">scroll</dfn>
1829+
<td><dfn event for="Document, Element, VisualViewport">scroll</dfn>
18301830
<td>{{Event}}
18311831
<td>{{Document}}, elements, {{VisualViewport}}
18321832
<td>Fired at the {{Document}} or element when the <a>viewport</a> or element is scrolled, respectively. Fired at the {{VisualViewport}}

0 commit comments

Comments
 (0)