[csswg-drafts] [css-values-4] Allow omitting `<declaration-value>` in `mix()` (#8556)

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

== [css-values-4] Allow omitting `<declaration-value>` in `mix()` ==
If I am not mistaken, [`mix()`](https://drafts.csswg.org/css-values-4/#funcdef-mix) is valid for custom properties, whose initial value is the guaranteed-invalid value, ie. an omitted value.

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

Should `mix()` syntax allow omitting `<declaration-value>` ...

```diff
- <mix()> = mix( <percentage> ';' <declaration-value> ';' <declaration-value> )
+ <mix()> = mix( <percentage> ';' <declaration-value>? ';' <declaration-value>? )
```

... to accept inputs like `--custom: mix(50%; ; on)`?

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


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

Received on Friday, 10 March 2023 14:23:06 UTC