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

Will Element/container query would work inside nested feature query? #11

Open
IamManchanda opened this issue Feb 6, 2018 · 1 comment

Comments

@IamManchanda
Copy link

No description provided.

@tomhodgins
Copy link
Owner

Hi! If you're talking about the @supports at-rule, presently as far as I'm aware there are no plugins that support this since they all rely on JavaScript, so any feature detection relating to polyfills for this functionality presently happens in JavaScript.

The way this spec was written (and the way EQCSS work) currently, an @supports query inside of an @element query group body rule that applies to the document would be 'seen' by the browser, but the plugins used to implement element queries right now don't read @supports, so nesting an @element query inside of @supports doesn't work anywhere today.

This functionality is undergoing a standardization effort under the WICG though, so if functionality like this is added to CSS it would make sense that you could nest the syntax we come up with inside of @supports and the browser would know what to do. But we haven't gotten that far in our new specification effort to decide stuff like how it will interact :D

The new effort is taking place here: https://github.com/WICG/container-queries

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

No branches or pull requests

2 participants