Re: [csswg-drafts] [css-values-4][css-variables] Parsing priority between substitution values (#8731)

It turns out that `toggle()` must be parsed before arbitrary substitution values:

  >  The `toggle()` notation is not allowed to be nested; nor may it contain `attr()` or `calc()` notations.

I am not sure this means it must be the sole value of the property (it must not be nested in a list of component values) like `mix()`:

  > A `mix()` notation is invalid if it is not the sole value of the property

https://github.com/w3c/csswg-drafts/issues/6700#issuecomment-1006186578:

  > mix should be able to be an entire argument of the mix. You should be able to mix mixes

So I have an answer but I leave the issue open if there is a need to clarify that `mix()` is invalid if it is not the sole value of the property *nor may it contain arbitrary substitution values*, and possibly to clarify whether *`toggle()` should be able to an entire argument of a higher `toggle()`*.

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


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

Received on Friday, 22 September 2023 05:27:07 UTC