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

Provide any workaround for ":where" selector #218

Open
anantakrishna opened this issue Jun 30, 2022 · 1 comment
Open

Provide any workaround for ":where" selector #218

anantakrishna opened this issue Jun 30, 2022 · 1 comment

Comments

@anantakrishna
Copy link

Currently global coverage is no more than 90%: caniuse.com/?search=where

The main feature of :where is to achieve 0 specificity which can't be emulated with plain CSS (seemingly). However, maybe emulating :where with increased specificity still could be beneficial? At least there may be a chance of proper styling in the old browsers instead of completely unstyled HTML?

Examples:

postcss-preset-env also does not provide any workaround for this selector: csstools/postcss-plugins#509

Created from discussion parcel-bundler/parcel#8262

@devongovett
Copy link
Member

What would you expect it to compile to? I can't think of another way to lower specificity...

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