parcel-bundler / parcel-bundler/lightningcss
Combination of `transition` and `transition-property` is being built into a longer form
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 7.7k
- Forks
- 302
- PR merge metrics
- No merged PRs in 30d
Description
Certain combinations of transition properties get built into a longer form. I was able to get this behavior just from using lightningcss as a minifier.
Example input:
.foo {
transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
transition-property: height, width, transform, max-width, left, right, top, bottom, box-shadow;
}
If I could get a couple code pointers, I'd love to contribute a fix for it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the CSS example in the issue and reproduce it through the linked Lightning CSS Playground with minification enabled. Trace how the minifier handles the combination of transition and transition-property; done means the input is no longer incorrectly expanded into the reported longer form, with a regression test covering the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100