Re: [csswg-drafts] [css-color-4] Should premultiplied undefined alpha make other color components undefined? (#7253)

Alpha being `none` was forgotten about for premultiplication.

> If any component value is [none](https://drafts.csswg.org/css-color-4/#valdef-color-none), the premultiplied value is also none.

That is referring to the color components only, not the alpha. However, we didn't forget for un-premultiplication, if alpha was 0:

> If the alpha value is zero, the un-premultiplied value is the premultiplied value

So I propose to fix that, in premultiplication:

If the alpha value is `none`, the premultiplied value is the un-premultiplied value

and in un-premultiplication:

If the alpha value is zero or `none`, the un-premultiplied value is the premultiplied value

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7253#issuecomment-1119024365 using your GitHub account


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

Received on Thursday, 5 May 2022 20:38:52 UTC