- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Tue, 01 Apr 2008 00:53:36 -0700
- To: Bert Bos <bert@w3.org>
- CC: W3C style mailing list <www-style@w3.org>
Bert Bos wrote: > The values 'round' and 'space' for the 'background-repeat' property > provide two different ways to ensure that a tiled background image is > tiled a whole number of times. 'Round' does it by shrinking the > image, 'space' by inserting space between the tiles. > > 'Space' is meant for images that should not be scaled and are fairly > small compared to the element. But, of course, the specification must > also define what happens if the image is large. The question is how. > > Let A be the width of the area and W>0 the width of the image. Then the > number of times the image fits in the area is N = floor(A/W) and the > amount of space we have to distribute is S = A - N*W. (There is a > similar story for the height.) > > The interesting cases to look at are N = 0 and N = 1, ... > > a3) The image is placed according to 'background-position'. I think this should be obvious. The same thing happens to 'repeat' images. ~fantasai
Received on Tuesday, 1 April 2008 07:54:15 UTC