JavaScripture
Contribute via GitHub
Feedback
CSSRule
Instance Properties
cssText
parentRule
parentStyleSheet
type
CSSRule Properties
CHARSET_RULE
FONT_FACE_RULE
IMPORT_RULE
MEDIA_RULE
PAGE_RULE
STYLE_RULE
UNKNOWN_RULE
CSS API
All API
No API set selected.
CSSRule
:
Object
The base object for the
CSSCharsetRule
,
CSSFontFaceRule
,
CSSImportRule
,
CSSMediaRule
,
CSSPageRule
, and
CSSStyleRule
types. The
CSSStyleRule
is the most commonly used derivative of CSSRule.
Spec
Instance Properties
cssText
:
String
parentRule
:
CSSRule
readonly
parentStyleSheet
:
CSSStyleSheet
readonly
type
:
Number
readonly
CSSRule Properties
CHARSET_RULE
:
Number
value = 2
FONT_FACE_RULE
:
Number
value = 5
IMPORT_RULE
:
Number
value = 3
MEDIA_RULE
:
Number
value = 4
PAGE_RULE
:
Number
value = 6
STYLE_RULE
:
Number
value = 1
UNKNOWN_RULE
:
Number
value = 0
home
license
contribute
feedback
toggle light/dark mode
Copyright © JavaScripture Contributors