jackall3n / postcss-scope

🔭 A small plugin to allow you to scope your css with a custom selector
5 stars 2 forks source link

Keyframes #9

Closed gbale closed 8 months ago

gbale commented 8 months ago

This PR improves at-rule handing to fix two issues in particular:

  1. @keyframes states (percent/from/to) were being scoped, resulting in 0% becoming invalid .foo 0% for example
  2. At-rules like @charset with no nodes would cause TypeError: Cannot read properties of undefined
jackall3n commented 8 months ago

This is great, thanks @gbale!