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
Broken resolve for @custom-at-rule
#106
Comments
@evilebottnawi could you provide more information? The context of that selector. |
@e-cloud Ref: https://github.com/postcss/postcss-custom-selectors In new version |
Spent a good amount of time looking at this from a high-level, and diving into the code and examining how this is parsed. There's a nice method here https://github.com/postcss/postcss-custom-selectors/blob/6380b0095095740f6aeade7da6a31739ecb51f5a/lib/custom-selectors-from-root.js#L34 that could be exported to make it easier to examine and determine if it's a custom selector. I also can't justify baking in detection for every type of at-rule that may be supported by any number of other third-party postcss plugins. It's not something I want to herd, curate, nor maintain. Your best bet now is to duplicate the Unfortunately this isn't a fix this project is going to make. |
If you have a large amount of code to share which demonstrates the problem you're experiencing, please provide a link to your
repository rather than pasting code. Otherwise, please paste relevant short snippets below.
LESS
JavaScript
Expected Behavior
Should be resolved as
at-rule
.Actual Behavior
Resolved as
variable
How can we reproduce the behavior?
Example above.
Maybe we should adopt this https://github.com/less/less.js/blob/e3c13121dfdca48ba8fe26335cc12dd3f7948676/lib/less/parser/parser.js for better detecting.
/cc @e-cloud @davidyorr looks like regression
The text was updated successfully, but these errors were encountered: