parcel-bundler / parcel-bundler/lightningcss

Removing duplicate properties does not work on some (clear, clip)

Open
#688 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.