noprompt / garden

Generate CSS with Clojure
1.34k stars 87 forks source link

Fix @keyframes incorrectly adding context #189

Closed jamesnvc closed 2 years ago

jamesnvc commented 2 years ago

Previously, at-keyframes that were inside a selector would incorrectly have the selector context added to the keyframes stops (e.g. [:.foo (at-keyframes :x ["0%" {:a 1}] ["100%" {:a 2}])] would incorrectly become @keyframes x { .foo 0% {a: 1} .foo 100% {a: 2} }). This commit fixes that by skipping the frame identifier when expanding.