dom/interfaces/css/nsIDOMCSSRule.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/interfaces/css/nsIDOMCSSRule.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "domstubs.idl"
    1.10 +
    1.11 +/**
    1.12 + * The nsIDOMCSSRule interface is a datatype for a CSS style rule in
    1.13 + * the Document Object Model.
    1.14 + *
    1.15 + * For more information on this interface please see
    1.16 + * http://www.w3.org/TR/DOM-Level-2-Style
    1.17 + */
    1.18 +
    1.19 +[scriptable, uuid(2938307a-9d70-4b63-8afc-0197e82318ad)]
    1.20 +interface nsIDOMCSSRule : nsISupports
    1.21 +{
    1.22 +  // RuleType
    1.23 +  const unsigned short      UNKNOWN_RULE                   = 0;
    1.24 +  const unsigned short      STYLE_RULE                     = 1;
    1.25 +  const unsigned short      CHARSET_RULE                   = 2;
    1.26 +  const unsigned short      IMPORT_RULE                    = 3;
    1.27 +  const unsigned short      MEDIA_RULE                     = 4;
    1.28 +  const unsigned short      FONT_FACE_RULE                 = 5;
    1.29 +  const unsigned short      PAGE_RULE                      = 6;
    1.30 +  const unsigned short      KEYFRAMES_RULE                 = 7;
    1.31 +  const unsigned short      KEYFRAME_RULE                  = 8;
    1.32 +  // When layout.css.prefixes.animations is disabled/removed,
    1.33 +  // we should remove these two MOZ_* constants.
    1.34 +  const unsigned short      MOZ_KEYFRAMES_RULE             = 7;
    1.35 +  const unsigned short      MOZ_KEYFRAME_RULE              = 8;
    1.36 +  const unsigned short      NAMESPACE_RULE                 = 10;
    1.37 +  const unsigned short      SUPPORTS_RULE                  = 12;
    1.38 +  const unsigned short      FONT_FEATURE_VALUES_RULE       = 14;
    1.39 +
    1.40 +  readonly attribute unsigned short      type;
    1.41 +           attribute DOMString           cssText;
    1.42 +                                        // raises(DOMException) on setting
    1.43 +
    1.44 +  readonly attribute nsIDOMCSSStyleSheet parentStyleSheet;
    1.45 +  readonly attribute nsIDOMCSSRule       parentRule;
    1.46 +};

mercurial