gecko-dev/dom/webidl/StyleRuleChangeEvent.webidl
Boris Zbarsky 7f64e99cc4 Bug 851892 part 9. Add a CSSRule Web IDL interface. r=peterv,heycam
Note that this explicitly drops CSSRule.UNKNOWN_RULE.
2017-01-13 10:41:03 -05:00

18 lines
619 B
Plaintext

/* -*- 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/.
*/
[ChromeOnly, Constructor(DOMString type, optional StyleRuleChangeEventInit eventInitDict)]
interface StyleRuleChangeEvent : Event
{
readonly attribute CSSStyleSheet? stylesheet;
readonly attribute CSSRule? rule;
};
dictionary StyleRuleChangeEventInit : EventInit
{
CSSStyleSheet? stylesheet = null;
CSSRule? rule = null;
};