CSSStyleRule class

CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE).

MDN Reference

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

CSSStyleRule()
factory

Properties

charsetRule num

Available on CSSRule, provided by the CSSRule$Typings extension

no setter
cssRules CSSRuleList

Available on CSSStyleRule, provided by the CSSStyleRule$Typings extension

no setter
cssText String

Available on CSSRule, provided by the CSSRule$Typings extension

MDN Reference
getter/setter pair
deleteRule ↔ void Function(num)

Available on CSSStyleRule, provided by the CSSStyleRule$Typings extension

getter/setter pair
fontFaceRule num

Available on CSSRule, provided by the CSSRule$Typings extension

no setter
hashCode int
The hash code for this object.
no setterinherited
importRule num

Available on CSSRule, provided by the CSSRule$Typings extension

no setter
insertRule num Function(String, [num?])

Available on CSSStyleRule, provided by the CSSStyleRule$Typings extension

getter/setter pair
keyframeRule num

Available on CSSRule, provided by the CSSRule$Typings extension

no setter
keyframesRule num

Available on CSSRule, provided by the CSSRule$Typings extension

no setter
mediaRule num

Available on CSSRule, provided by the CSSRule$Typings extension

no setter
namespaceRule num

Available on CSSRule, provided by the CSSRule$Typings extension

no setter
pageRule num

Available on CSSRule, provided by the CSSRule$Typings extension

no setter
parentRule CSSRule?

Available on CSSRule, provided by the CSSRule$Typings extension

MDN Reference
no setter
parentStyleSheet CSSStyleSheet?

Available on CSSRule, provided by the CSSRule$Typings extension

MDN Reference
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectorText String

Available on CSSStyleRule, provided by the CSSStyleRule$Typings extension

MDN Reference
getter/setter pair
style CSSStyleDeclaration

Available on CSSStyleRule, provided by the CSSStyleRule$Typings extension

MDN Reference
no setter
styleMap StylePropertyMap

Available on CSSStyleRule, provided by the CSSStyleRule$Typings extension

MDN Reference
no setter
styleRule num

Available on CSSRule, provided by the CSSRule$Typings extension

no setter
supportsRule num

Available on CSSRule, provided by the CSSRule$Typings extension

no setter
type num

Available on CSSRule, provided by the CSSRule$Typings extension

no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited