Re: New values for Float property

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 UTC