Closed marapper closed 1 year ago
cssnano
will merge only adjacent nodes with same rules) but still no idea how to solve it.And actually postcss-merge-selectors
can successfully merge all nested selectors successfully so maybe its not issue at all
Seems reasonable and given that the tests pass, good enough for me ⏩
Sorry for the review delay 🙇 Thanks for the contribution!
Real edge case for #130 is comma-separated nested selectors inside another comma separated selectors, see example test.
Fix #130
Issue is about cloning nodes after traversing so lead to loosing links to cloned children nodes. My first approach is move cloning phase in tree traverse section (in hope that postcss walks to new nodes on next iteration) and it works fine.