2013-03-17 18:42:59 +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
|
|
|
|
* http://dev.w3.org/csswg/cssom/
|
|
|
|
*/
|
|
|
|
|
2015-12-21 18:52:45 +03:00
|
|
|
enum CSSStyleSheetParsingMode {
|
|
|
|
"author",
|
|
|
|
"user",
|
|
|
|
"agent"
|
|
|
|
};
|
|
|
|
|
2013-03-17 18:42:59 +04:00
|
|
|
interface CSSStyleSheet : StyleSheet {
|
|
|
|
[Pure]
|
|
|
|
readonly attribute CSSRule? ownerRule;
|
2016-09-29 09:55:21 +03:00
|
|
|
[Throws, NeedsSubjectPrincipal]
|
2013-03-17 18:42:59 +04:00
|
|
|
readonly attribute CSSRuleList cssRules;
|
2016-08-02 23:17:06 +03:00
|
|
|
[ChromeOnly, BinaryName="parsingModeDOM"]
|
2015-12-21 18:52:45 +03:00
|
|
|
readonly attribute CSSStyleSheetParsingMode parsingMode;
|
2016-09-29 09:55:21 +03:00
|
|
|
[Throws, NeedsSubjectPrincipal]
|
2013-03-17 18:42:59 +04:00
|
|
|
unsigned long insertRule(DOMString rule, unsigned long index);
|
2016-09-29 09:55:21 +03:00
|
|
|
[Throws, NeedsSubjectPrincipal]
|
2013-03-17 18:42:59 +04:00
|
|
|
void deleteRule(unsigned long index);
|
|
|
|
};
|