parcel-bundler / parcel-bundler/lightningcss
Removing duplicate properties does not work on some (clear, clip)
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 7.7k
- Forks
- 302
- PR merge metrics
- No merged PRs in 30d
Description
Good day!
First I would like to thank the team for the great product! Thanks to it the web can become a little bit better :)
I have encountered the following problem - while some properties have been successfully reduced to a single instance, others still have duplicates:
.aligncenter {
clear: both;
clear: both;
clip: auto;
clip: auto;
margin-left: auto;
margin-left: auto;
margin-right: auto;
margin-right: auto;
display: block;
display: block;
}
will result in
.aligncenter{clear:both;clear:both;clip:auto;clip:auto;margin-left:auto;margin-right:auto;display:block}
Here is a link to playground
Thank you!
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 linked Lightning CSS playground and reproduce the duplicate clear and clip declarations while comparing them with the properties that are deduplicated. Trace the minification path responsible for duplicate property removal; done means equivalent duplicate declarations are reduced consistently without changing the other output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100