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/.
6 * The origin of this IDL file is
7 * http://dev.w3.org/csswg/cssom/
11 interface StyleSheet {
13 readonly attribute DOMString type;
15 readonly attribute DOMString? href;
16 // Spec says "Node", but it can go null when the node gets a new
17 // sheet. That's also why it's not [Constant]
19 readonly attribute Node? ownerNode;
21 readonly attribute StyleSheet? parentStyleSheet;
23 readonly attribute DOMString? title;
24 [Constant, PutForwards=mediaText]
25 readonly attribute MediaList media;
27 attribute boolean disabled;
28 // The source map URL for this style sheet. The source map URL can
29 // be found in one of two ways.
31 // If a SourceMap or X-SourceMap response header is seen, this is
32 // the value. If both are seen, SourceMap is preferred. Because
33 // this relies on the HTTP response, it can change if checked before
34 // the response is available -- which is why it is not [Constant].
36 // If the style sheet has the special "# sourceMappingURL=" comment,
37 // then this is the URL specified there.
39 // If the source map URL is not found by either of these methods,
40 // then this is an empty string.
42 readonly attribute DOMString sourceMapURL;
43 // The source URL for this style sheet. If the style sheet has the
44 // special "# sourceURL=" comment, then this is the URL specified
45 // there. If no such comment is found, then this is the empty
48 readonly attribute DOMString sourceURL;