Skip to content

[cssom][css-conditional] Should there be an interface for @supports rules? #844

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
bzbarsky opened this issue Dec 31, 2016 · 3 comments
Closed
Labels

Comments

@bzbarsky
Copy link

https://drafts.csswg.org/cssom/#cssgroupingrule has no concept of @supports rules. Maybe it should.

The way this works in Gecko is that there is a CSSConditionRule interface which inherits from CSSGroupingRule and has .conditionText on it. Inheriting from this are CSSMediaRule and CSSSupportsRule; the latter is an empty interface for now.

@dbaron
Copy link
Member

dbaron commented Dec 31, 2016

Also see:

Also note that the Conditional Rules spec has a section on APIs that does add a bunch of these interfaces.

@dbaron dbaron changed the title [css-cssom] Should there be an interface for @supports rules? [cssom][css-conditional] Should there be an interface for @supports rules? Dec 31, 2016
@bzbarsky
Copy link
Author

Aha, Conditional Rules is what I was looking for

@tabatkins
Copy link
Member

Issue superceded by #851

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

No branches or pull requests

3 participants