W3C home > Mailing lists > Public > www-style@w3.org > March 2013

Re: [css3-background] round(N+0.5) with background-repeat: round

From: Simon Sapin <simon.sapin@exyr.org>
Date: Tue, 26 Mar 2013 19:08:00 +0100
Message-ID: <5151E400.1030001@exyr.org>
To: Zack Weinberg <zackw@panix.com>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Le 26/03/2013 18:41, Zack Weinberg a écrit :
> On Tue, Mar 26, 2013 at 1:20 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>> On Tue, Mar 26, 2013 at 7:39 AM, Simon Sapin <simon.sapin@exyr.org> wrote:
>>>
>>> What should round() do when two natural numbers are equally near? For
>>> example, with W = 250 and X = 100, should round(W / X) be 2 or 3?
>>
>> I believe in other cases, we've explicitly specified that it rounds up.
>
> Do we need to worry about the situation where a bunch of round(W/X)
> items are in a row?  If so it might be better to make it alternate.

What do you mean, in a row?

This calculation is done once per background layer, and the result of 
round() is the number of times an image is repeated. (The image is also 
scaled accordingly.) I don’t see how alternating between eg. 8 and 9 
repeats of the same image is desirable.

-- 
Simon Sapin
Received on Tuesday, 26 March 2013 18:08:24 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:08:25 GMT