-
Notifications
You must be signed in to change notification settings - Fork 266
Re-scopes at-rule #1231
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
base: main
Are you sure you want to change the base?
Re-scopes at-rule #1231
Conversation
Co-authored-by: Kevin Babbitt <kbabbitt@microsoft.com>
Co-authored-by: Kevin Babbitt <kbabbitt@microsoft.com>
Co-authored-by: Kevin Babbitt <kbabbitt@microsoft.com>
Removed use cases from the explainer. Detect whether an at-rule, with optional prelude and/or block, is supported based on this resolution: w3c/csswg-drafts#6966 (comment) Detect whether a given declaration is supported within an at-rule block based on the proposed @supports-condition w3c/csswg-drafts#12622 (comment)
| Allow authors to feature-detect new enhancements to existing at-rules, such as: | ||
| - New media query features and other additions to at-rule preludes | ||
| - New descriptors that may be introduced to rules such as `@font-face` | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than deleting these, should we move them to Non-Goals, with a note that the CSSWG resolved to introduce @supports-condition to handle them? And perhaps a link to the spec: https://drafts.csswg.org/css-conditional-5/#supports-condition-rule
- Addresses TAG comments found [here](w3ctag/design-reviews#1176 (comment)) - moves previous capabilities to non-goals based on the new `@supports-condition` at-rule
|
@kbabbitt I've move the previous capabilities of at-rule to non-goals and added an additional paragraph to address TAG's review. |
Removed 2 use cases for the at-rule function based on 2 CSSWG resolutions.
"Detect whether an at-rule, with optional prelude and/or block, is supported" based on : [css-conditional-5] Add ability to test for at-rule preludes w3c/csswg-drafts#6966 (comment)
"Detect whether a given declaration is supported within an at-rule block" based on the proposed @supports-condition [css-conditional]
@supports-condition, for larger feature queries and named reuse w3c/csswg-drafts#12622 (comment)