type
(attribute
)
Owning interface and usage:
Member of these other interfaces:
Readonly: yes
Description:
The type of the rule, as defined below
. The expectation is that binding-specific casting methods can be used to cast down from an instance of the CSSRule interface to the specific derived interface implied by the type.
Available values for the type attribute:
An integer indicating which type of rule this is.
- 0 = UNKNOWN_RULE (of type unsigned short)
- The rule is a CSSUnknownRule.
- 1 = STYLE_RULE (of type unsigned short)
- The rule is a CSSStyleRule.
- 2 = CHARSET_RULE (of type unsigned short)
- The rule is a CSSCharsetRule.
- 3 = IMPORT_RULE (of type unsigned short)
- The rule is a CSSImportRule.
- 4 = MEDIA_RULE (of type unsigned short)
- The rule is a CSSMediaRule.
- 5 = FONT_FACE_RULE (of type unsigned short)
- The rule is a CSSFontFaceRule.
- 6 = PAGE_RULE (of type unsigned short)
- The rule is a CSSPageRule.