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
Unsupported CSS4 Color Values when using color() #4576
lessc returns RuntimeError: Error evaluating function 'color': keyword.toLowerCase is not a function in... when trying to use ither than sRGB color space like color: color(display-p3 1 1 1);
Hi @adi-! I'm Dosu and I'm helping the Personal team.
To pass the CSS color() call through to the browser, escape the whole value with ~"…". Less emits the contents without the quotes [1].
color: ~"color(display-p3 1 1 1)";
The error is a naming collision, not a Display P3 limitation specifically. Less treats color() as its built-in color helper and sends the space-separated arguments to a keyword lookup that expects a string and calls .toLowerCase() on it [2][3].
Activity
dosubot commentedon Nov 25, 2026
Hi @adi-! I'm Dosu and I'm helping the Personal team.
To pass the CSS
color()call through to the browser, escape the whole value with~"…". Less emits the contents without the quotes [1].The error is a naming collision, not a Display P3 limitation specifically. Less treats
color()as its built-in color helper and sends the space-separated arguments to a keyword lookup that expects a string and calls.toLowerCase()on it [2] [3].To reply, just mention @dosu.
Share context across your team and agents. Try Dosu.