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 evaluate media queries and report changes for a
722722
    723723

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

    @@ -839,7 +838,7 @@ The matches attribute must return t
    839838
    840839
    841840
    change
    842-
    {{Event}}
    841+
    {{MediaQueryListEvent}}
    843842
    {{MediaQueryList}}
    844843
    Fired at the {{MediaQueryList}} when the matches state changes.
    845844

    0 commit comments

    Comments
     (0)