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

RE: [CSS3] ltr and rtl pseudo-class proposal (:lang)

From: Richard Ishida <ishida@w3.org>
Date: Mon, 17 Mar 2008 20:04:32 -0000
To: "'Alan Gresley'" <alan@css-class.com>
Cc: <www-style@w3.org>
Message-ID: <01ae01c8886a$1e46da90$5ad48fb0$@org>

FWIW, Alan, here are some more use cases, and a couple of useful links at
the bottom of the page:
http://rishida.net/blog/?p=67

Cheers,
RI

============
Richard Ishida
Internationalization Lead
W3C (World Wide Web Consortium)
 
http://www.w3.org/International/
http://rishida.net/blog/
http://rishida.net/

 

> -----Original Message-----
> From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf
> Of fantasai
> Sent: 17 March 2008 17:30
> To: Alan Gresley
> Cc: Justin Rogers; www-style@w3.org
> Subject: Re: [CSS3] ltr and rtl pseudo-class proposal
> 
> 
> Alan Gresley wrote:
> > Justin Rogers wrote:
> >
> >> Alan, you should review :lang() as a pseudo-class. It is not much
different from >
> >> :rtl/:ltr in terms of functionality.
> >
> >
> > Yes you are correct but I really miss the point why there is such a
pseudo class as
> > :lang in the first place since it's does nothing once the style sheet is
disabled.
> 
> :lang is there to allow for styling based on language, so I'm not sure
what your
> point is here.
> 
> > I believe that [lang="val"] is much more suited and the semantic meaning
is
> always
> > in the source (accessible).
> 
> [lang|="val"] only selects elements with a lang attribute. It's useful for
some things
> perhaps, but :lang() is much better for most cases since it selects
elements that
> inherit the language.
> 
> 
> Here is an example of a use case for :lang:
> 
> em:lang(zh), em:lang(ja), em:lang(ko) { font-style: normal;
text-decoration:
> underline; }
> 
> Another use case is changing automatically-generated quote marks to match
> language conventions.
> 
>    q:lang(en) { .. }
>    q:lang(fr) { .. }
> 
> ~fantasai
Received on Monday, 17 March 2008 20:01:38 GMT

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