Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AmeliaBR opened this issue Feb 21, 2018 · 1 comment
Labels
css-color-4 Current Work

Comments

@AmeliaBR
Copy link
Contributor

The various color modifier functions in Colors 4 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%)) */
@AmeliaBR AmeliaBR added the css-color-4 Current Work label Feb 21, 2018
@tabatkins
Copy link
Member

Closing because now moot, since I removed it. ^_^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-color-4 Current Work
Projects
None yet
Development

No branches or pull requests

2 participants