Math expressions directly assigned to a CSS custom property are not computed.
Open
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.
Contributor guide
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.
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