Skip to content

Commit 1a8e45e

Browse files
committed
[cssom-view] Fix prose for 'change' event for MediaQueryList
Fixes w3c#681.
1 parent a1b28d8 commit 1a8e45e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cssom-view/Overview.bs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ urlPrefix: https://dom.spec.whatwg.org/#
5959
text: context object
6060
urlPrefix: https://dom.spec.whatwg.org/#concept-
6161
type: dfn
62-
text: dispatch; url: event-dispatch
6362
text: event
6463
text: event listener
6564
text: quirks mode; url: document-quirks
@@ -751,8 +750,8 @@ When asked to <dfn>evaluate media queries and report changes</dfn> for a {{Docum
751750
<ol>
752751

753752
<li>If <var>target</var>'s <a>matches state</a> has changed since the last time these steps were run,
754-
<a>dispatch</a> a new <a>event</a> to <var>target</var>
755-
using the {{MediaQueryList}} interface,
753+
<a>fire an event</a> at <var>target</var>
754+
using the {{MediaQueryListEvent}} constructor,
756755
with its {{Event/type}} attribute initialized to <a event>change</a>,
757756
its {{Event/isTrusted}} attribute initialized to true,
758757
its {{MediaQueryList/media}} attribute initialized to <var>target</var>'s <a>media</a>,

0 commit comments

Comments
 (0)