less / less/less-docs

Math expressions directly assigned to a CSS custom property are not computed.

Open
#619 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Less
Stars
680
Forks
442
PR merge metrics
No merged PRs in 30d

Description

  --test1: (1 / 2);

  @value: (1 / 2);
  --test2: @value;

compiles to:

  --test1: (1 / 2);
  --test2: 0.5;

I would expect both to compile to 0.5
I can't find any mention of this in documentation.

EDIT: see https://github.com/less/less.js/issues/3800

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 by reviewing the behavior described in this issue and the linked Less issue #3800. No files, tests, or entry points are identified in the payload. Done should establish whether direct CSS custom-property expressions are expected to compute like variable references and record or document the confirmed behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation
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.