Skip to content

selector-resolve-nested #1254

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

Merged

Conversation

romainmenke
Copy link
Member

@romainmenke romainmenke commented Jan 21, 2024

This is the same algorithm as can be found in : #1140

Publishing it as a separate package allows others to make use of the same logic.
At this time this would be mainly Stylelint.


Changes from the version in postcss-nesting

  • arguments and return are postcss-selector-parser Root nodes, not strings
  • a lot more tests (easier to have better coverage when this is a JS lib and not a PostCSS plugin)
  • fixed some bugs

This package should also be used in an updated version of postcss-nesting


The name is a bit awkward but I wanted a parallel with @csstools/selector-specificity.

@romainmenke romainmenke merged commit 7e1cd2e into main Jan 21, 2024
@romainmenke romainmenke deleted the selector-resolve-nested--resourceful-meerkat-8f34434438 branch January 21, 2024 18:34
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

Successfully merging this pull request may close these issues.

1 participant