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

Don't allow mixed "and" and "or" in @supports conditions #3134

Open
nex3 opened this issue Nov 4, 2020 · 0 comments
Open

Don't allow mixed "and" and "or" in @supports conditions #3134

nex3 opened this issue Nov 4, 2020 · 0 comments
Labels
Compatibility - P2 Moderately important for compatibility with the Sass spec and ecosystem Dart Backport Done

Comments

@nex3
Copy link
Contributor

nex3 commented Nov 4, 2020

Per the @supports spec (and also the more recent version), a condition should only have one of and or or specified at the top-level. In particular:

@supports (a: b) and (c: d) or (e: f) {
  // ...
}

should be an error. However, in LibSass, it is not.

@nex3 nex3 added the Compatibility - P2 Moderately important for compatibility with the Sass spec and ecosystem label Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compatibility - P2 Moderately important for compatibility with the Sass spec and ecosystem Dart Backport Done
Projects
None yet
Development

No branches or pull requests

2 participants