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: css/no-invalid-properties can't parse valid nested color functions #434
I am unable to reproduce this problem.
My guess is that one of the custom property values, which are omitted in the example, has a disallowed value, as defining the custom properties with hex color values works.
Can you please provide the values for the custom properties?
Oh got it. The properties are not available in the project, they're inherited from an external stylesheet. Linting should pass without them being available (or provide a better error)
The linting does not pass for unknown custom properties.
For example for the provided snippet I get the lint error "Can't validate with unknown variable '--rgh-heat-color'.".
Can you please provide a minimal reproduction for the error?
Most likely this, even though somehow the error came from the CSS plugin on a .css file:
// Svelte rules require the Svelte parser and crash on CSS files{files: ['**/*.css'],rules: Object.fromEntries(Object.keys(sveltePlugin.rules).map(rule=>[`svelte/${rule}`,'off']),),},
Activity
DMartens commentedon Apr 30, 2026
I am unable to reproduce this problem.
My guess is that one of the custom property values, which are omitted in the example, has a disallowed value, as defining the custom properties with hex color values works.
Can you please provide the values for the custom properties?
fregante commentedon Apr 30, 2026
Oh got it. The properties are not available in the project, they're inherited from an external stylesheet. Linting should pass without them being available (or provide a better error)
DMartens commentedon Apr 30, 2026
The linting does not pass for unknown custom properties.
For example for the provided snippet I get the lint error "Can't validate with unknown variable '--rgh-heat-color'.".
Can you please provide a minimal reproduction for the error?
fregante commentedon May 1, 2026
That's weird, I can't repro anymore, it might have been some conflict with the svelte parser.
You can see the failed CI job here: https://github.com/refined-github/refined-github/actions/runs/25153248210/job/73729685970?pr=9275
Something fixed it in this diff: https://github.com/refined-github/refined-github/pull/9275/changes/d9887b91a9eed86d09af19841931800c3ce1ed94..ead8b51dcd37f24f07534130bb20a4442fdbee8c
Most likely this, even though somehow the error came from the CSS plugin on a .css file:
Anyway, closing.
fregante commentedon Jun 15, 2026
Found a repro, this is the most minimal repro I could make:
DMartens commentedon Jun 15, 2026
Thank you for the reproduction.
I'll work on a fix.