What would you want to propose?
I think that README on postcss-nesting should have some mention of @nest and how it should behave since it's not immediately clear and you'd have to research the spec yourself.
Suggested solution
I think a section around @nest what's wrong vs what's right (which could also benefit throughout other areas) so developers using the plugin don't have to read the spec and avoid pitfalls.
This is a common mistake:
.some-selector {
@nest {
.parent-selector & {
margin-top: 0;
}
}
}
Additional context
No response
Validations
Would you like to open a PR for this feature?
What would you want to propose?
I think that README on postcss-nesting should have some mention of
@nestand how it should behave since it's not immediately clear and you'd have to research the spec yourself.Suggested solution
I think a section around
@nestwhat's wrong vs what's right (which could also benefit throughout other areas) so developers using the plugin don't have to read the spec and avoid pitfalls.This is a common mistake:
Additional context
No response
Validations
Would you like to open a PR for this feature?