Feature Request: Pick a value contains ','
jiangyijie27 opened this issue · comments
Aragakey commented
// pick a rgb, then give a random alpha
--color: @p((0, 0, 0), (255, 255, 255));
color: rgba(var(--color), @r(0, 1));
Yuan Chuan commented
(Edit: The above code actually works. Here's how to read variables with @p
which may have ',' )
Does this help?
--color: @p((0, 0, 0), (255, 255, 255));
color: rgba(@p((--color)), @r(0, 1));
Example:
--color: 0, 0, 0;
color: @p(--color);
/* == @p(0, 0, 0);
== 0; */
color: @p((--color));
/* == @p((0, 0, 0));
== 0, 0, 0; */