Re: [CSS3] ltr and rtl pseudo-class proposal

On Sat, Mar 15, 2008 at 07:03:30PM -0700, Andrew Fedoniouk wrote:
> Ben Cotterell wrote:
[...]
> >>Or is there a better (e.g. more generic) way of achieving this?
> >
> >Another way of doing this kind of thing is to have more properties
> >called margin-start, margin-end, etc., where start means "left if ltr,
> >right if rtl".
> >
> >Not sure which is better.
> >
> 
> margin-start/end solve only part of the problem.
> 
> What about image positions, borders and almost all other
> visual attributes?
> 
> ul { background-position: 100% 100%; }
> ul:rtl { background-position: 0 100%; }

Good point. Also, with :rtl, the author/designer can change other
properties not apparently related to directionality, but which he just
thinks look better that way. It's more flexible than start/end
properties.

Received on Sunday, 16 March 2008 09:54:34 UTC