Skip to content

Fixed tree walking for @keyframe attributes#147

Open
bitboxer wants to merge 1 commit into
micantoine:masterfrom
bitboxer:fix/keyframes
Open

Fixed tree walking for @keyframe attributes#147
bitboxer wants to merge 1 commit into
micantoine:masterfrom
bitboxer:fix/keyframes

Conversation

@bitboxer

@bitboxer bitboxer commented Jun 8, 2026

Copy link
Copy Markdown

The library has a problem when mixing @Keyframe with @media and other queries. Classnames inside of @media would never be hashed and svelte will deactive them because they don't match the other classnames that got a hash.

This fixes it. The walker approach skipped the tree too early and I had to rewrite that part. Maybe there is a better way to fix this. The tests cover all edge cases I came up with. Maybe there are some missing there, not sure 🤔.

The library has a problem when mixing @Keyframe with @media and other
queries. Classnames inside of @media would never be hashed and svelte
will deactive them because they don't match the other classnames that
got a hash.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant