Class CSSConditionRule

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable
    Direct Known Subclasses:
    CSSMediaRule, CSSSupportsRule

    public class CSSConditionRule
    extends CSSGroupingRule
    A JavaScript object for CSSConditionRule.
    See Also:
    MDN doc, Serialized Form
    • Constructor Detail

      • CSSConditionRule

        public CSSConditionRule()
        Creates a new instance.
      • CSSConditionRule

        protected CSSConditionRule​(CSSStyleSheet stylesheet,
                                   org.htmlunit.cssparser.dom.CSSMediaRuleImpl rule)
        Creates a new instance.
        Parameters:
        stylesheet - the Stylesheet of this rule.
        rule - the wrapped rule
    • Method Detail

      • getConditionText

        public java.lang.String getConditionText()
        Returns the text of the condition of the rule.
        Returns:
        the text of the condition of the rule
      • getConditionRule

        private org.htmlunit.cssparser.dom.CSSMediaRuleImpl getConditionRule()
        Returns the wrapped rule, as a media rule.
        Returns:
        the wrapped rule, as a media rule