CSSRule Interface
An object implementing the CSSRule
DOM interface represents a single CSS rule. References to a CSSRule
-implementing object may be obtained by looking at a CSS style sheet's cssRules
list.
There are several kinds of rules. The CSSRule
interface specifies the properties common to all rules, while properties unique to specific rule types are specified in the more specialized interfaces for those rules' respective types.
Subinterfaces
CSSCharsetRule, CSSFontFaceRule, CSSImportRule, CSSKeyframeRule, CSSKeyframesRule, CSSMediaRule, CSSPageRule, CSSStyleRule, CSSUnknownRule
Static Fields
Fields
Code String cssText #
"h1,h2 { font-size: 16pt }"
String cssText;
Code final CSSRule parentRule #
null
. E.g. if this rule is a style rule inside an @media
block, the parent rule would be that CSSMediaRule
.
final CSSRule parentRule;
Code final CSSStyleSheet parentStyleSheet #
CSSStyleSheet
object for the style sheet that contains this rule
final CSSStyleSheet parentStyleSheet;
Code final int type #
final int type;
This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.