W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2018

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

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Wed, 21 Feb 2018 18:54:27 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-299086895-1519239266-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:24 UTC