2018-09-13 20:04:55 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2013-12-16 14:03:34 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
2017-04-10 14:29:06 +00:00
|
|
|
* https://drafts.csswg.org/cssom-view/#mediaquerylist
|
2013-12-16 14:03:34 +00:00
|
|
|
*
|
|
|
|
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
|
|
|
* liability, trademark and document use rules apply.
|
|
|
|
*/
|
|
|
|
|
2019-09-27 15:26:14 +00:00
|
|
|
[ProbablyShortLivingWrapper,
|
|
|
|
Exposed=Window]
|
2017-04-10 14:29:06 +00:00
|
|
|
interface MediaQueryList : EventTarget {
|
2020-12-17 14:04:35 +00:00
|
|
|
readonly attribute UTF8String media;
|
2013-12-16 14:03:34 +00:00
|
|
|
readonly attribute boolean matches;
|
|
|
|
|
2017-04-10 14:29:06 +00:00
|
|
|
[Throws]
|
2022-09-21 07:44:58 +00:00
|
|
|
undefined addListener(EventListener? listener);
|
2017-04-10 14:29:06 +00:00
|
|
|
|
|
|
|
[Throws]
|
2022-09-21 07:44:58 +00:00
|
|
|
undefined removeListener(EventListener? listener);
|
2017-04-10 14:29:06 +00:00
|
|
|
|
|
|
|
attribute EventHandler onchange;
|
|
|
|
};
|