[csswg-drafts] [css-color-4] In color-mod(), allow multiplying by a number instead of percentage

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

== [css-color-4] In color-mod(), allow multiplying by a number instead of percentage ==
The various [color modifier functions in Colors 4](https://drafts.csswg.org/css-color-4/#modifying-colors) currently only support percentages in multiplicative modifiers. Why not plain numbers? Like:

```
color-mod(purple alpha(*0.5))
/* equal to color-mod(purple alpha(*50%)) */

color-mod(var(--foreground) rgb(*1.7))
/* equal to color-mod(var(--foreground) rgb(*170%)) */
```


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

Received on Wednesday, 21 February 2018 18:54:30 UTC