W3C home > Mailing lists > Public > www-style@w3.org > December 2007

RE: [css3-background] background-position relative to other corners

From: Alan Gresley <alan1@azzurum.com>
Date: Sat, 08 Dec 2007 17:31:21 -0700
To: www-style@w3.org
Message-ID: <20071208173120.34b83c2f3c9bef00757a2c62c0fb7450.038826eb41.wbe@email.secureserver.net>

I wrote:

> If the background was given to the body element using the above rules with calc(). Over the width of a 1280 
> viewpoint the right and bottom edge of the background image would move backs and forwards by initially 10px 
> upon resizing of the viewpoint down or move backs and forwards by finally 10px when resizing of the viewpoint 
> up.
> 
> 1280-80px(scrollbar etc)-100px-100px=1000px divided by 100% = 10px
> 
> I believe that my model should not include percentage as background-size is ideal for this but for situations 
> with background position in pixels with a fixed or fluid width box my model is possibly simpler.

I have done a few test with background-size that works in Safari 3 (beta) that could be showing what I have explained above.

http://css-class.com/test/css/colorsbackgrounds/background-size.htm

http://css-class.com/test/css/colorsbackgrounds/background-size2.htm

http://css-class.com/test/css/colorsbackgrounds/background-size2.htm

Widening or narrowing the window will reveal gaps or bands in the background image at certain intervals. This is more prominent on the horizontal axis and is more apparent when done slowly. All three test behave differently in where the gaps appear or the amount of times a gap appears. The first test I can count over 30 gaps appearing when widening the viewpoint from 800px up to 1200px ever so slowly. These test could also just show a bug in Safari 3.

Alan
http://css-class.com/
Received on Sunday, 9 December 2007 00:31:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:56 GMT