CSSMediaRule class

A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE).

MDN Reference

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

Constructors

CSSMediaRule()
factory

Properties

charsetRule num

Available on CSSRule, provided by the CSSRule$Typings extension

no setter
conditionText String

Available on CSSConditionRule, provided by the CSSConditionRule$Typings extension

MDN Reference
no setter
cssRules CSSRuleList

Available on CSSGroupingRule, provided by the CSSGroupingRule$Typings extension

MDN Reference
no setter
cssText String

Available on CSSRule, provided by the CSSRule$Typings extension

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

Available on CSSGroupingRule, provided by the CSSGroupingRule$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 CSSGroupingRule, provided by the CSSGroupingRule$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
media MediaList

Available on CSSMediaRule, provided by the CSSMediaRule$Typings extension

MDN Reference
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
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