[csswg-drafts] [css-images] Should the "fill the missing percentages" in cross-fade really be at computed-value time? (#5338)

emilio has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-images] Should the "fill the missing percentages" in cross-fade really be at computed-value time? ==
https://drafts.csswg.org/css-images-4/#cross-fade-function has:

> If any percentages are omitted, all the specified percentages are summed together and subtracted from 100%, the result is floored at 0%, then divided equally between all images with omitted percentages at computed-value time.

That is a bit weird, both in the sense that I don't think we have a precedent for this kind of non-local effect on a single value, and because it seems potentially useful to leave the percentages "unfilled" in the computed value, so that you can animate the filled percentages and get the rest of them auto-computed.

Otherwise I don't think you'd get the right behavior with non-linear interpolations, though maybe I'm wrong, I haven't thought it all that much through.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5338 using your GitHub account

Received on Monday, 20 July 2020 09:38:08 UTC