Skip to content
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

Add @supports at-rule #7166

Open
Schweinepriester opened this issue Sep 28, 2024 · 0 comments
Open

Add @supports at-rule #7166

Schweinepriester opened this issue Sep 28, 2024 · 0 comments

Comments

@Schweinepriester
Copy link
Contributor

Schweinepriester commented Sep 28, 2024

https://www.bram.us/2024/07/11/feature-detect-css-starting-style-support/:

While in theory you could use @supports at-rule() for this, in practice you can't because it has no browser support (😭).

https://www.bram.us/2022/01/20/detect-at-rule-support-with-the-at-rule-function/:

the CSS Working Group just decided to introduce a new function that be used in conjunction with @supportsat-rule().

With it, we can feature detect at-rule support as follows:

@supports at-rule(@foo) {
  /* @foo is supported */
}

I feel like it's very likely that this will come via MDN, but as usual just keeping track 🤓

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