Re: [csswg-drafts] [css-color] "transparent" keyword being a special color value, which resolves to rgba(0, 0, 0, 0) by default?

I discussed the question of how cross-fade() can work with one of Chrome's implementors, and they said it didn't matter, they could do the averaging in premultiplied or non-premultiplied space, as Chrome does both at different parts of our compositing/rendering pipeline anyway.

I also researched the dissolve operation a little more; whatever reference I was originally looking at treated it as an unary operation that you applied to a single image, but Wikipedia defines it as a binary op (trivially extensible to an N-way). It's oddly defined as a stochastic operation that just randomly takes pixels from the source images according to their weights, but in the limit of infinitely small pixels, this converges to averaging in premultiplied space.

So, I've changed the spec to be clear that this averaging is done on premultiplied colors, and provided a good bit of additional detail on the operation to make sure it's clear. f6909a183

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

Received on Thursday, 9 August 2018 22:09:21 UTC