Skip to content

Commit a30af53

Browse files
committed
[cssom-1] Make it clearer that the CSSRule.type enumeration is frozen. #7154
1 parent 3f0797a commit a30af53

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cssom-1/Overview.bs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1990,6 +1990,9 @@ is a legacy design practice that is no longer used in Web APIs.
19901990
Instead, to tell what type of rule a given object is,
19911991
it is recommended to check <code highlight=js>rule.constructor.name</code>,
19921992
which will return a string like <code highlight=js>"CSSStyleRule"</code>.
1993+
This enumeration is thus frozen in its current state,
1994+
and no new new values will be added to reflect additional at-rules;
1995+
all at-rules beyond the ones listed above will return 0.
19931996

19941997

19951998
### The {{CSSStyleRule}} Interface ### {#the-cssstylerule-interface}

0 commit comments

Comments
 (0)