W3C home > Mailing lists > Public > www-style@w3.org > January 2008

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

From: fantasai <fantasai.lists@inkedblade.net>
Date: Fri, 18 Jan 2008 16:43:12 -0500
Message-ID: <47911D70.1000609@inkedblade.net>
To: www-style@w3.org, Alan Gresley <alan1@azzurum.com>

fantasai wrote:
> Bert Bos wrote:
>> But even the positioning relative to other edges than top and left is 
>> no longer needed since we decided to add calc() to CSS. That wasn't an 
>> easy decision, because calc() is not easy to work with (and a real 
>> challenge for a WYSIWYG editor), but its power is such that it removed 
>> the need for several other things, such as extensions to the 
>> 'background-position' property.
> It wouldn't solve positioning relative to the 'start' or 'end' edge, 
> though.

Here's another proposal:

   background-position: left 10px top 10px; /* Equivalent to background-position: 10px 10px */
   background-position: right 10px bottom 10px; /* 10px in from the bottom right corner */

Then we can also have

   background-position: start before; /* top left for LTR, top right for RTL */
   background-position: end 10px after 10px; /* same as right 10px bottom 10px for LTR,
                                                        left 10px bottom 10px for RTL */

Received on Friday, 18 January 2008 21:43:40 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:33 UTC