Re: [csswg-drafts] [css-values] String concatentation (#542)

That will not work with the feature we're discussing here; it's for concatenating strings to produce strings, not concatenating raw CSS text to produce more raw CSS text which is then parsed. You'd just get the string `"100%"`, which is invalid as an argument to `hsl()`.

What you're asking for is already possible with calc(). `calc(var(--s) * 1%)` "converts" a plain number into a percentage (or any other unit).

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/542#issuecomment-1483855848 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 25 March 2023 15:52:52 UTC