Border css variable properties are incorrectly removed
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 50/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- css, javascript
Research direction
Start by running the provided JavaScript reproduction for less-plugin-clean-css with advanced compression enabled. Trace how the plugin processes the border declaration containing nested CSS variables, then verify that the output preserves the var() expressions and matches the expected CSS shown in the issue.
Written by the indexing model from the issue text.
Description
See the following script:
const less = require('less');
const plugin = require('less-plugin-clean-css');
const P = new plugin({ advanced: true });
const input = '.class {border: 1px solid var(--foo, var(--bar));}';
less.render(input, { plugins: [P] }).then(console.log);
Outputs
{ css: '.class{border:1px solid}', imports: [] }
While it should be
{ css: '.class{border:1px solid var(--foo, var(--bar));}', imports: [] }
- Dominant language
- JavaScript
- Stars
- 193
- Forks
- 41
- Avg merge
- 7h 43m
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from less/less-plugin-clean-css
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 28/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
less/less-plugin-clean-css#42 · 1 comment · 2 reactions ·
-
ReleaseOpen
Difficulty 4/5 3-5 days Newbie friendliness 20/100
less/less-plugin-clean-css#40 · 9 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
All issues in less/less-plugin-clean-css
Similar issues
-
agentic-workflows
Difficulty 1/5 Under an hour Newbie friendliness 90/100
githubnext/gh-aw-cao#16599 ·
Maintainers usually reply within 1 day
-
effort:low impact:medium status: auto-triaged UI / Studio
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
mastra-ai/mastra#26124 · 2 comments ·
Maintainers usually reply within 1 day
-
allow igdb.comOpen
Difficulty 2/5 1-3 hours Newbie friendliness 61/100
AdguardTeam/HostlistsRegistry#939 ·
Maintainers usually reply within 1 day
-
product / databases
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
smansfield635-create/smansfield635-create.github.io#5818 · 4 comments ·
Maintainers usually reply within 1 day