Skip to content

fix(issue#4343) add color operands #4344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

puckowski
Copy link
Contributor

What:

Add missing color operand support to resolve issue #4343.

Currently the following Less:

background: oklch(from #0000FF calc(l + 0.1) c h);

results in the following error:

Error: Could not parse call arguments or missing ')'

because color components are not being detected as valid operands for an Operation. This PR resolves that issue and also adds tests for oklch, rgb, and hsl.

Why:

Using color components as an operand is valid and should be supported.

Checklist:

  • Documentation
  • Added/updated unit tests
  • Code complete

* Add missing color operand support to resolve issue less#4343.
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant