-
Notifications
You must be signed in to change notification settings - Fork 89
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
Support for feature queries? #146
Comments
I would be happy to review your PR in Garden for including |
not sure if it's the same thing @Jarzka but I was looking at how to generate
but I get
@media screen and (min-width: 470px) { So there is no way to actually get the right behaviour? |
Media queries are different than feature queries, see: https://developer.mozilla.org/en-US/docs/Web/CSS/@supports |
Yup. But the syntax is quite similar, so looking at the source for at-media might help if your going to implement feature-queries |
I guess the supports rule has been added now? |
Hi
I'm working with my own CSS library named stylefy which uses Garden to convert Clojure style maps to CSS at runtime. The only missing piece is to add support for CSS feature queries (@supports). To my understanding, Garden does not support feature queries at all. Are you planning to add it at some point?
If the support for feature queries is not coming, I can probably handle the situation on my own by converting feature queries to CSS without the help of Garden. However, since I'm already using Garden's "syntax" for defining media query selectors in stylefy, I would like keep these two libraries consistent.
EDIT: I implemented feature query support for stylefy, statements are simply strings. If Garden adds support for @supports using maps, I will add support for it as an alternative way to write @supports statements.
The text was updated successfully, but these errors were encountered: