Skip to content

[css-cascade] [css-properties-and-values] [cssom] Define new constants for the new at rules? #6561

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
emilio opened this issue Aug 31, 2021 · 2 comments

Comments

@emilio
Copy link
Collaborator

emilio commented Aug 31, 2021

Much like e.g., https://drafts.csswg.org/css-fonts/#om-fontfeaturevalues @property and @layer should probably define which constants do they return for CssRule.type?

I know it's deprecated etc, but we need to return something.

@tabatkins
Copy link
Member

Already defined in your own spec, Emilio ^_^ https://drafts.csswg.org/cssom-1/#dom-cssrule-type All at-rules defined after @Viewport just return 0 for that attribute (and nothing after @namespace should have a constant, or else we should be inlining those constants for 11-14 into CSSOM as well).

Also documented on https://wiki.csswg.org/spec/cssom-constants

@emilio
Copy link
Collaborator Author

emilio commented Sep 1, 2021

Whoopsies, I did recall some discussion about this lol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants