Repository navigation
feat: add opt-in logical keyframes and animation references - #3
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3 +/- ##
==========================================
+ Coverage 98.06% 98.22% +0.16%
==========================================
Files 7 8 +1
Lines 722 900 +178
Branches 220 305 +85
==========================================
+ Hits 708 884 +176
- Misses 14 16 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
added 8 commits
October 3, 2026 12:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Logical keyframes currently remain uncompiled, so physical-property fallback styles cannot animate those properties in older browsers. Add
animations: trueto generate distinct LTR and RTL copies of referenced logical keyframes and rewrite staticanimation-nameandanimationshorthand references. The option defaults to false; existing default behavior and other options remain unchanged.Parse shorthand roles before selecting animation names, including scientific-notation durations, negative delays, keyword names, quoted/escaped names and multiple animations. Avoid naming collisions, preserve original definitions, clone every same-name definition in its original conditional context, support prefixed declarations/definitions, and preserve shorthand/longhand resets and importance. Reprocessing serialized output is idempotent. Dynamic references remain unchanged with a warning; inline imports and expand nesting before this plugin.
Add a runnable direction-toggle example, README/API/configuration documentation and packed-consumer checks for the new option. Allow CI for stacked PR bases while keeping documentation deployment restricted to main.
This change builds on #2, which was merged first. It adds no third-party runtime dependency and contains independently written code. Released in v0.7.1.
Validation:
Release review also verifies literal backslashes do not alias hexadecimal escapes in quoted animation names. Packed consumers pass on Node.js 20.19.0 and 22.