CSSRule class

The interface represents a single CSS rule. There are several types of rules which inherit properties from .

CSSStyleRule CSSImportRule CSSMediaRule CSSFontFaceRule CSSPageRule CSSNamespaceRule CSSKeyframesRule CSSKeyframeRule CSSCounterStyleRule CSSDocumentRule CSSSupportsRule CSSFontFeatureValuesRule CSSViewportRule

Implementers
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

CSSRule()
factory

Properties

cssText String

Available on CSSRule, provided by the PropsCSSRule extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
parentRule CSSRule?

Available on CSSRule, provided by the PropsCSSRule extension

no setter
parentStyleSheet CSSStyleSheet?

Available on CSSRule, provided by the PropsCSSRule extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type int

Available on CSSRule, provided by the PropsCSSRule 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

Static Properties

charsetRule int
no setter
counterStyleRule int
no setter
fontFaceRule int
no setter
fontFeatureValuesRule int
no setter
importRule int
no setter
keyframeRule int
no setter
keyframesRule int
no setter
marginRule int
no setter
mediaRule int
no setter
namespaceRule int
no setter
pageRule int
no setter
styleRule int
no setter
supportsRule int
no setter
viewportRule int
no setter