JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit.javascript.host.css

Class CSSRule

    • Field Detail

      • UNKNOWN_RULE

        public static final int UNKNOWN_RULE
        The rule is a CSSUnknownRule.
        See Also:
        Constant Field Values
      • STYLE_RULE

        public static final int STYLE_RULE
        The rule is a CSSStyleRule.
        See Also:
        Constant Field Values
      • CHARSET_RULE

        public static final int CHARSET_RULE
        The rule is a CSSCharsetRule.
        See Also:
        Constant Field Values
      • IMPORT_RULE

        public static final int IMPORT_RULE
        The rule is a CSSImportRule.
        See Also:
        Constant Field Values
      • MEDIA_RULE

        public static final int MEDIA_RULE
        The rule is a CSSMediaRule.
        See Also:
        Constant Field Values
      • FONT_FACE_RULE

        public static final int FONT_FACE_RULE
        The rule is a CSSFontFaceRule.
        See Also:
        Constant Field Values
      • KEYFRAMES_RULE

        public static final int KEYFRAMES_RULE
        The rule is a CSSKeyframesRule.
        See Also:
        Constant Field Values
      • KEYFRAME_RULE

        public static final int KEYFRAME_RULE
        The rule is a CSSKeyframeRule.
        See Also:
        Constant Field Values
      • MARGIN_RULE

        public static final int MARGIN_RULE
        The rule is a CSSMerginRule.
        See Also:
        Constant Field Values
      • NAMESPACE_RULE

        public static final int NAMESPACE_RULE
        The rule is a CSSNamespaceRule.
        See Also:
        Constant Field Values
      • COUNTER_STYLE_RULE

        public static final int COUNTER_STYLE_RULE
        The rule is a CSSCounterStyleRule.
        See Also:
        Constant Field Values
      • SUPPORTS_RULE

        public static final int SUPPORTS_RULE
        The rule is a CSSSupportsRule.
        See Also:
        Constant Field Values
      • FONT_FEATURE_VALUES_RULE

        public static final int FONT_FEATURE_VALUES_RULE
        The rule is a CSSCounterStyleRule.
        See Also:
        Constant Field Values
      • VIEWPORT_RULE

        public static final int VIEWPORT_RULE
        The rule is a CSSViewportRule.
        See Also:
        Constant Field Values
    • Method Detail

      • jsConstructor

        public void jsConstructor()
        Creates an instance.
      • getType

        public int getType()
        Returns the type of the rule.
        Returns:
        the type of the rule.
      • getCssText

        public String getCssText()
        Returns the parsable textual representation of the rule. This reflects the current state of the rule and not its initial value.
        Returns:
        the parsable textual representation of the rule.
      • getParentStyleSheet

        public CSSStyleSheet getParentStyleSheet()
        Returns the style sheet that contains this rule.
        Returns:
        the style sheet that contains this rule.
      • getParentRule

        public CSSRule getParentRule()
        If this rule is contained inside another rule (e.g. a style rule inside a @media block), this is the containing rule. If this rule is not nested inside any other rules, this returns null.
        Returns:
        the parent rule
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /