2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2013-03-17 18:42:59 +04: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
|
|
|
|
* 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]
|
2017-04-21 00:55:46 +03:00
|
|
|
unsigned long insertRule(DOMString rule, optional unsigned long index = 0);
|
2016-09-29 09:55:21 +03:00
|
|
|
[Throws, NeedsSubjectPrincipal]
|
2013-03-17 18:42:59 +04:00
|
|
|
void deleteRule(unsigned long index);
|
|
|
|
};
|