Proposed additions to 'background-repeat'

New 'background-repeat' values
        Since it's become more widely known that backgrounds tile in all
four axes, instead of just down and to the right, there has developed a
potential need for four new values.  These are:


The names are fairly self-explanatory.  If an author wants to set the
origin image in the center of an element and have it tile across the left
half of the element, he could declare:

        background: transparent url(bg23.gif) center repeat-y repeat-left;

This will cause the image to tile both directions vertically, and to the
left along the horizontal axis.  If, on the other hand, the author wanted
to tile up and to the right, thus filling in the upper right-hand corner of
the element, the declaration would be:

        background: transparent url(bg23.gif) center repeat-right repeat-up;

        Also, the addition of these elements would allow 'repeat-x' to be
described in terms of being a shorthand for 'repeat-right repeat-left' and
'repeat-y' as shorthand for 'repeat-up repeat-down'.  'repeat' itself is
simply a shorthand for all four.
        Not a major change, in my opinion, but one I wanted to get out
there to see what other people thought about it.


Eric A. Meyer  -  -
 Editor, Style Sheets Reference Guide
 Coordinator, CSS1 Test Suite
 Member, WSP CSS Technical Committee

Received on Friday, 19 February 1999 09:15:55 UTC