W3cubDocs

/Haxe JavaScript

CSSRule

package js.html

extended by CSSCharsetRule, CSSFontFaceRule, CSSImportRule, CSSMediaRule, CSSPageRule, CSSStyleRule, CSSUnknownRule

@:native("CSSRule") Available on js

The CSSRule interface represents a single CSS rule. There are several types of rules, listed in the Type constants section below.

Documentation CSSRule by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Variables

cssText:String

read only parentRule:CSSRule

read only parentStyleSheet:CSSStyleSheet

read only type:Int

Static variables

@:value(2) static inline read only CHARSET_RULE:Int = 2

@:value(5) static inline read only FONT_FACE_RULE:Int = 5

@:value(3) static inline read only IMPORT_RULE:Int = 3

@:value(4) static inline read only MEDIA_RULE:Int = 4

@:value(6) static inline read only PAGE_RULE:Int = 6

@:value(1) static inline read only STYLE_RULE:Int = 1

@:value(0) static inline read only UNKNOWN_RULE:Int = 0

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/CSSRule.html