Skip to content

[cssom-view-1] Align phrasing for change event firing with DOM spec #7466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions cssom-view-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ the following steps must be run:
'scroll-behavior' property is ''scroll-behavior/smooth''
<li><var>behavior</var> is <code>smooth</code>
</ul>
...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.
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.
...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.
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.
</ol>

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.
Expand Down Expand Up @@ -693,10 +693,9 @@ When asked to <dfn export>evaluate media queries and report changes</dfn> for a
<ol>

<li>If <var>target</var>'s <a>matches state</a> has changed since the last time these steps were run,
<a>fire an event</a> at <var>target</var>
using the {{MediaQueryListEvent}} constructor,
with its {{Event/type}} attribute initialized to <a event>change</a>,
its {{Event/isTrusted}} attribute initialized to true,
<a>fire an event</a> named <a event>change</a> at <var>target</var>
using {{MediaQueryListEvent}},
with its {{Event/isTrusted}} attribute initialized to true,
its {{MediaQueryList/media}} attribute initialized to <var>target</var>'s <a>media</a>,
and its {{MediaQueryListEvent/matches}} attribute initialized to <var>target</var>'s <a>matches state</a>. <!--fingerprint-->

Expand Down Expand Up @@ -810,7 +809,7 @@ The <dfn attribute for=MediaQueryListEvent>matches</dfn> attribute must return t
<tbody>
<tr>
<td><dfn event for=MediaQueryList>change</dfn>
<td>{{Event}}
<td>{{MediaQueryListEvent}}
<td>{{MediaQueryList}}
<td>Fired at the {{MediaQueryList}} when the <a>matches state</a> changes.
</table>
Expand Down