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

Re: New values for Float property

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 04 Dec 2009 08:56:10 -0500
Message-ID: <4B1914FA.8020908@mit.edu>
To: Patrick Garies <pgaries@fastmail.us>
CC: www-style@w3.org
On 12/4/09 1:11 AM, Patrick Garies wrote:
>> padding-start / padding-end
>> border-start / border-end
>> outline-start / outline-end
>> margin-start / margin-end
...
> You still have to define interactions with the non-dynamic properties;
> for example, does |padding-start| override |padding-left| or does it
> override |padding-right|?

What Gecko implements is the following, more or less:

   If computed direction is ltr, then the computed value of padding-left
   is given by the more specific of the specified values of
   padding-left and padding-start.

   If computed direction is ltr, then the computed value of padding-right
   is given by the more specific of the specified values of
   padding-right and padding-end.

And similar for the rtl case.  I haven't tested what webkit implements, 
but I suspect it's similar.

> It seems like it would be easier to have something like |direction:
> auto| where the |auto| keyword automatically reverses all literal left
> and right properties and values.

I'm not sure how that would work, exactly.... How would you use 
direction:auto to achieve the effect of:

   body {  direction: rtl; padding-start: 50px; padding-end: 20px; }

?

-Boris
Received on Friday, 4 December 2009 13:56:47 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:22 GMT