Class CSSConditionRule

java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
All Implemented Interfaces:
Serializable, 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:
  • Constructor Details

    • 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 Details

    • jsConstructor

      public void jsConstructor()
      Creates an instance.
      Overrides:
      jsConstructor in class CSSGroupingRule
    • getConditionText

      public 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