Spec: https://drafts.csswg.org/cssom-view/#mediaquerylist and
https://drafts.csswg.org/cssom-view/#mediaquerylistevent

Summary: MediaQueryList interface has changed in the spec. I just landed
(without sending this email before doing it) a patch that introduces such
changes.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1354441

Details:

The main differences between the previous version and the current one are:

. addListener/removeListener are 'alias' of
addEventListener/removeEventListener

. the spec also introduces a new event called MediaQueryListEvent: the
function argument will be this event and not the MediaQueryList object as
it was before. This could introduce a compatibility break.

Chromium implements the same behavior, since 2014.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to