-
-
Notifications
You must be signed in to change notification settings - Fork 72
Support :where pseudo class #579
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
Comments
Happy to accept a PR for this! You'd have to add this to fb55/css-what#288 should be a good example for a PR. Once it can be parsed, the new alias has to be added here: css-select/src/pseudo-selectors/subselects.ts Lines 54 to 58 in 30013a5
Also please add a basic test cases to make sure we won't accidentally drop support for it. |
Are you suggesting that
|
Yes, I am suggesting to just create an alias. Specificity is important for deciding which selectors have precedence for which element when applying styles. That is out of scope for this library (and can be implemented in a separate module if needed). |
@fb55 Sorry to ask this; Would it be possible to create a release with this fix/feature? |
Critters is waiting for this fix too: GoogleChromeLabs/critters#90 |
Published as |
Thank you very much 😃 |
Would it be sensible to implement support for the
:where
pseudo class selector?https://developer.mozilla.org/en-US/docs/Web/CSS/:where
The text was updated successfully, but these errors were encountered: