W3C home > Mailing lists > Public > www-style@w3.org > November 2010

Re: Suggestion: Offset a tiling background position for each row or column to create memory effecient interesting backgrounds

From: Brad Kemper <brad.kemper@gmail.com>
Date: Wed, 10 Nov 2010 10:33:02 -0800
Message-Id: <86FE3801-F716-4626-8845-2C02B79991E3@gmail.com>
Cc: "www-style@w3.org" <www-style@w3.org>
To: Gabriel Zackari <gabriel.zackari@gmail.com>
On Nov 10, 2010, at 5:55 AM, Gabriel Zackari <gabriel.zackari@gmail.com> wrote:

> Css suggestion:
> 
> Tiling a background with the "starting" position offset for each row or for each column:
> 
> Example (syntax need to be improved)
> 
> Background-position: offset-x 10px;
> This would offset the starting position for each tile on every row with 10px.
> 
> 
> Or random number?
> 
> Background-position: offset-x rnd 10-40px;
> Would offset the position randomly between 10 and 40 pixels.
> 
> Rationale:
> 
> Offsetting each row of a background tile, would be a memory effecient way to 
> create a much more varied background pattern. 
> 
> Eliminating the repeativeness of a pattern and the need for large pattern to create a look of randomness.
> Thus making many websites more memory effecient.
> 
> It would also be a cheap way to create diagonal patterns.
> 
> Sorry if this has been suggested before.

I would think such a thing would best appear as a value for 'background-repeat'. Take a look at 'background-repeat: space'. It not what you are looking for exactly, but there are some similarities. I could imagine using two measurements instead of two keywords there for the spacing. Not sure about random spacing. 
Received on Wednesday, 10 November 2010 18:34:10 GMT

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