Skip to content

Commit ddd1e78

Browse files
committed
spec/cssom-constants: more detail
1 parent ff3ad13 commit ddd1e78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/cssom-constants.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
This page previously listed the CSSRule constants, used to identify which rule a given ''CSSRule.type'' integer was associated with. It was intended to help with coordinating new integer additions across specifications.
44

5-
As the ''.type'' attribute is now deprecated and no new values will be minted for it (and all existing values have been inlined into the CSSOM spec), this page has been tombstoned.
5+
As the ''.type'' attribute is now deprecated and no new values will be minted for it (and all existing values have been inlined into the CSSOM spec), this page has been tombstoned. All new at-rules just return ''0'' for the attribute, and do not define constants on ''CSSRule''.
66

77
(If you're trying to identify which rule a given CSSRule-subclass object is, check ''rule.constructor.name'', which returns the class name as a string.)

0 commit comments

Comments
 (0)