Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Border css variable properties are incorrectly removed

Open
#32 0 comments 1 reaction 0 assignees View on GitHub

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
Domain
frontend, tooling

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

  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.

More from less/less-plugin-clean-css

All issues in less/less-plugin-clean-css

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.