Dart API Referencedart:htmlCSSMediaRule

CSSMediaRule Interface

An object representing a single CSS media rule. CSSMediaRule implements the CSSRule interface.

Extends

CSSRule

Methods

Code void deleteRule(int index) #

Deletes a rule from the style sheet.
void deleteRule(int index);

Code int insertRule(String rule, int index) #

Inserts a new style rule into the current style sheet.
int insertRule(String rule, int index);

Fields

Code final CSSRuleList cssRules #

Returns a CSSRuleList of the CSS rules in the media rule.
final CSSRuleList cssRules;

Code final MediaList media #

Specifies the intended destination medium for style information.
final MediaList media;

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.