W3C home > Mailing lists > Public > www-style@w3.org > May 2011

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 26 May 2011 09:36:35 -0700
Message-ID: <BANLkTi=uarX15wDu5Meq6PMc2dAosqX4vA@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: www-style list <www-style@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:40 GMT