2013-12-16 18:03:34 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* 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 17:29:06 +03:00
|
|
|
* https://drafts.csswg.org/cssom-view/#mediaquerylist
|
2013-12-16 18:03:34 +04:00
|
|
|
*
|
|
|
|
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
|
|
|
* liability, trademark and document use rules apply.
|
|
|
|
*/
|
|
|
|
|
2017-04-10 17:29:06 +03:00
|
|
|
interface MediaQueryList : EventTarget {
|
2013-12-16 18:03:34 +04:00
|
|
|
readonly attribute DOMString media;
|
|
|
|
readonly attribute boolean matches;
|
|
|
|
|
2017-04-10 17:29:06 +03:00
|
|
|
[Throws]
|
|
|
|
void addListener(EventListener? listener);
|
|
|
|
|
|
|
|
[Throws]
|
|
|
|
void removeListener(EventListener? listener);
|
|
|
|
|
|
|
|
attribute EventHandler onchange;
|
|
|
|
};
|