mnussbaumer / cssex

An Elixir based and opinionated way to write CSS
MIT License
20 stars 0 forks source link

fix chain bork when reversing unprefixed chains #38

Closed mnussbaumer closed 3 years ago

mnussbaumer commented 3 years ago

When parsing inner contexts (@include, @media, etc) when a prefix was present it would include the prefix on the new chain, whereas it should only be included on the split chain. This was only visible with multiple nests inside a new parser context, since at the top level context there wouldn't be a prefix, and if the @includes only had 1 level declarations the prefix wouldn't be merged back. This fixes it.

Also corrected the col increase for the @fn:: match, and added a no_count marker for the expansion of an @expandable