Re: [csswg-drafts] [css-variables-2] Substitution takes place at the level of CSS component values (#11316)

CSS Values 5 clearly says that substitution takes place at the component value level:

  > To **[substitute arbitrary substitution functions](https://drafts.csswg.org/css-values-5/#substitute-arbitrary-substitution-function)** in a sequence of component values `values` [...]

[Parse with a `<syntax>`](https://drafts.csswg.org/css-values-5/#parse-with-a-syntax) invokes it with the result from [parse a list of component values](https://drafts.csswg.org/css-syntax-3/#parse-list-of-component-values) as `values`, before parsing the result against the grammar represented by `<syntax>`.

It was specified before I created this issue and the note stating that *"`var()` substitution takes place at the level of CSS tokens"*, quoted in my initial comment, was removed in d1ea96f, which replaced *substitute a `var()`* with *substitute arbitrary substitution functions*, which I had not seen before posting my previous comment. Sorry.

So this is an issue in Chrome (still present today), not in Firefox.

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


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

Received on Monday, 14 April 2025 11:43:33 UTC