tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

StyleSheet.webidl (2016B)


      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 
     10 [Exposed=Window]
     11 interface StyleSheet {
     12  [Constant]
     13  readonly attribute DOMString type;
     14  [Constant, Throws]
     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]
     18  [Pure]
     19  readonly attribute Node? ownerNode;
     20  [Pure]
     21  readonly attribute StyleSheet? parentStyleSheet;
     22  [Pure]
     23  readonly attribute DOMString? title;
     24  [Constant, PutForwards=mediaText]
     25  readonly attribute MediaList media;
     26  [Pure]
     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.
     30  //
     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].
     35  //
     36  // If the style sheet has the special "# sourceMappingURL=" comment,
     37  // then this is the URL specified there.
     38  //
     39  // If the source map URL is not found by either of these methods,
     40  // then this is an empty string.
     41  [ChromeOnly, Pure]
     42  readonly attribute UTF8String 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
     46  // string.
     47  [ChromeOnly, Pure]
     48  readonly attribute UTF8String sourceURL;
     49  [ChromeOnly, Pure]
     50  readonly attribute Document? associatedDocument;
     51  [ChromeOnly, Pure, BinaryName="isConstructed"]
     52  readonly attribute boolean constructed;
     53 };