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

cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-values-4][css-variables] Parsing priority between substitution values ==
Does parsing arbitrary substitution values (`var()`, `attr()`, `random-item()`) has priority over parsing other substitution values (`mix()` and `toggle()`)?

For example, is `animation-duration: mix(50%; invalid; var(--end)) extra` valid?

  > A `mix()` notation is invalid if it is not the sole value of the property; if either of its `<declaration-value>`s are invalid when specified as the entire value for the property the function is used in; or if the property using it is not animatable.

https://w3c.github.io/csswg-drafts/css-values-4/#interpolate

  > If a property contains one or more `var()` functions, and those functions are syntactically valid, the entire property’s grammar must be assumed to be valid at parse time.

https://w3c.github.io/csswg-drafts/css-variables-2/#using-variables

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8731 using your GitHub account


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

Received on Wednesday, 19 April 2023 06:04:33 UTC