You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: no-invalid-properties false positive when a custom property value contains var() inside a function #623
7:9 error Invalid value '255' for property 'color'. Expected <color> css/no-invalid-properties
The rule validates color: 255, 255, 255 instead of color: rgba(255, 255, 255, 0.5). The wrapping rgba(…, 0.5) is dropped.
Link to Minimal Reproducible Example
Provided above
Participation
I am willing to submit a pull request for this issue.
AI acknowledgment
I did not use AI to generate this issue report.
I used AI to translate the content of this issue report.
I used AI to understand the codebase.
I used AI to generate content for this issue report and I reviewed the generated content.
Additional comments
In resolveVariable(), the custom property value is passed to parseVarFunction(), whose regex is not anchored, so rgba(var(--rgb), 0.5) is treated as if the whole value were var(--rgb) and the wrapping function is dropped.
Not a duplicate of #434: that one requires an unknown variable with allowUnknownVariables: true. Here all variables are defined and it reproduces with default options.
Activity
eslint-github-bot commentedon Nov 12, 2026
👋 Hi! This issue is being addressed in pull request #624. Thanks, @orshih6!
DMartens commentedon Nov 12, 2026
Thank you for the report, this will be fixed as part of #584.