Re: [css3-images] Rounding issues in degenerate repeating gradients

On Thu, May 26, 2011 at 8:45 AM, Brad Kemper <brad.kemper@gmail.com> wrote:
> Shouldn't it be identical to what happens to a non-repeating horizontal or vertical gradient in a repeating background when background-size approaches zero? My expectation there that once it rounds to zero, it disappears. An author should not make things that are nearly zero width if he wants people to see them. If he is animating a gradient width, he can animate it down to one or two px instead of zero, if he is concerned about what decimal of one will cause it to suddenly disappear.

It could be, sure; the case is roughly equivalent.  Given our goal of
avoiding non-continuous behavior, I'd say that the background-size
behavior is a bug.  I don't like dismissing problems with "authors
shouldn't do that" when we can just fix it easily so that it doesn't
ever occur.

We should align these two, though, whether that's by making
background-size match repeating gradients, or making repeating
gradients match background-size.

~TJ

Received on Thursday, 26 May 2011 16:37:22 UTC