Skip to content

Commit 5eb1ca8

Browse files
dontcallmedomemilio
authored andcommitted
Align phrasing for change event firing with DOM spec
Also, fix interface of the event in the summary table to be MediaQueryListEvent
1 parent 763e6ce commit 5eb1ca8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cssom-view-1/Overview.bs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -722,10 +722,9 @@ When asked to <dfn export>evaluate media queries and report changes</dfn> for a
722722
<ol>
723723

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

@@ -839,7 +838,7 @@ The <dfn attribute for=MediaQueryListEvent>matches</dfn> attribute must return t
839838
<tbody>
840839
<tr>
841840
<td><dfn event for=MediaQueryList>change</dfn>
842-
<td>{{Event}}
841+
<td>{{MediaQueryListEvent}}
843842
<td>{{MediaQueryList}}
844843
<td>Fired at the {{MediaQueryList}} when the <a>matches state</a> changes.
845844
</table>

0 commit comments

Comments
 (0)