W3C home > Mailing lists > Public > www-style@w3.org > February 1999

Proposed additions to 'background-repeat'

From: Eric A. Meyer <emeyer@sr71.lit.cwru.edu>
Date: Fri, 19 Feb 1999 09:15:52 -0500
Message-Id: <v04011700b2f32239b5d7@[129.22.138.217]>
To: www-style@w3.org
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:

        repeat-up
        repeat-right
        repeat-down
        repeat-left

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.

     </EMeyer>

--
Eric A. Meyer  -  eam3@po.cwru.edu  -  http://www.cwru.edu/home/eam3.html
 Editor, Style Sheets Reference Guide  http://style.webreview.com/
 Coordinator, CSS1 Test Suite          http://www.w3.org/Style/CSS/Test/
 Member, WSP CSS Technical Committee   http://www.webstandards.org/
Received on Friday, 19 February 1999 09:15:55 GMT

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