2026-03-23 08:09:30 -03:00
|
|
|
// https://drafts.csswg.org/cssom/#the-cssrule-interface
|
2022-09-05 06:41:26 -03:00
|
|
|
[Exposed=Window]
|
2021-09-29 14:41:46 -03:00
|
|
|
interface CSSRule {
|
|
|
|
|
|
2021-10-01 14:57:45 -03:00
|
|
|
attribute CSSOMString cssText;
|
2022-04-22 15:56:22 -03:00
|
|
|
readonly attribute CSSRule? parentRule;
|
|
|
|
|
readonly attribute CSSStyleSheet? parentStyleSheet;
|
|
|
|
|
|
2023-10-25 12:27:19 -03:00
|
|
|
// the following attribute and constants are historical
|
2024-10-30 11:33:46 -03:00
|
|
|
[ImplementedAs=type_for_bindings] readonly attribute unsigned short type;
|
2022-04-11 16:04:47 -03:00
|
|
|
const unsigned short STYLE_RULE = 1;
|
|
|
|
|
const unsigned short CHARSET_RULE = 2;
|
|
|
|
|
const unsigned short IMPORT_RULE = 3;
|
|
|
|
|
const unsigned short MEDIA_RULE = 4;
|
|
|
|
|
const unsigned short FONT_FACE_RULE = 5;
|
|
|
|
|
const unsigned short PAGE_RULE = 6;
|
2023-05-26 17:00:54 -03:00
|
|
|
const unsigned short KEYFRAMES_RULE = 7;
|
|
|
|
|
const unsigned short KEYFRAME_RULE = 8;
|
2022-04-11 16:04:47 -03:00
|
|
|
const unsigned short MARGIN_RULE = 9;
|
|
|
|
|
const unsigned short NAMESPACE_RULE = 10;
|
2026-01-30 09:03:29 -03:00
|
|
|
const unsigned short COUNTER_STYLE_RULE = 11;
|
2022-04-11 16:04:47 -03:00
|
|
|
const unsigned short SUPPORTS_RULE = 12;
|
2026-01-13 05:44:21 -03:00
|
|
|
const unsigned short FONT_FEATURE_VALUES_RULE = 14;
|
2022-04-11 16:04:47 -03:00
|
|
|
|
2021-09-29 14:41:46 -03:00
|
|
|
};
|