1/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
5 *
6 * The origin of this IDL file is
7 * http://dev.w3.org/csswg/cssom/
8 */
9
10enum CSSStyleSheetParsingMode {
11  "author",
12  "user",
13  "agent"
14};
15
16interface CSSStyleSheet : StyleSheet {
17  [Pure]
18  readonly attribute CSSRule? ownerRule;
19  [Throws, NeedsSubjectPrincipal]
20  readonly attribute CSSRuleList cssRules;
21  [ChromeOnly, BinaryName="parsingModeDOM"]
22  readonly attribute CSSStyleSheetParsingMode parsingMode;
23  [Throws, NeedsSubjectPrincipal]
24  unsigned long insertRule(DOMString rule, optional unsigned long index = 0);
25  [Throws, NeedsSubjectPrincipal]
26  void deleteRule(unsigned long index);
27};
28