less / less/less.js

Keep empty selectors (rulesets) option

Open
#1,006 28 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request low priority needs decision up-for-grabs
Dominant language
JavaScript
Stars
17k
Forks
3.4k
Avg merge
7h 42m
Merged PRs (30d)
26

Description

Can you add please an options to keep empty selectors, or at least point me at the file where i can add it myself. I need it to ease the styling via firebug.

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

The issue requests an option to preserve empty selectors in rulesets but names no file, test, or entry point. Start by locating the compiler code responsible for emitting selectors and rulesets, then determine how an option would be configured and tested. Done means empty selectors can be retained when the option is enabled without changing default output.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.