W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2020

Re: [csswg-drafts] [css-color-5] Which color do percentages in color-mix() apply to? (#5258)

From: Igor Snitkin via GitHub <sysbot+gh@w3.org>
Date: Mon, 29 Jun 2020 21:26:54 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-651377142-1593466013-sysbot+gh@w3.org>
I 100% agree that percentage should indicate opacity of the second color.
You also need to keep in mind that I might wanna mix already semi-transparent colors:
/* A. with providing opacity */
color-mix(#f002 #ff08 50%); /* Basically same as mixing #f002 with #ff04 which suggests I can do next */

/* B. without providing opacity */
color-mix(#f002 #ff04); /* which suggests that third argument must have 100% default value */

GitHub Notification of comment by snigo
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5258#issuecomment-651377142 using your GitHub account
Received on Monday, 29 June 2020 21:26:56 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:27:12 UTC