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

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

From: Ben Cotterell <ben.cotterell@antplc.com>
Date: Sun, 16 Mar 2008 09:53:57 +0000
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: www-style@w3.org
Message-ID: <a3019680f08943732c3882a7f30bdded1a26fb29@localhost>

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 GMT

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