W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 2002

RE: CSS2 :lang pseudo-class [Was: Re: proper coding or use for md ash]

From: Jukka Korpela <jukka.korpela@tieke.fi>
Date: Mon, 18 Mar 2002 09:40:33 +0200
Message-ID: <621574AE86FAD3118D1D0000E22138A941856D@TIEKE1>
To: w3c-wai-ig@w3.org
Chris Croome wrote:

> On Tue 12-Mar-2002 at 05:44:51 -0500, Charles McCathieNevile wrote:
> > 
> > I don't recall if it is possible to apply per-language 
> styles although
> > I believe it is (maybe just wishful thinking).
> 
> Just wishful thinking at the moment, the language pseudo-class: :lang
> [1] is not supported - -

It seems that attribute selectors, like in
[lang |= "en"] { ... }
are somewhat better supported.

But unless I'm missing something, such use of attribute selectors implies
some restrictions. The selector [lang |= "en"] matches only those elements
that themselves have an explicit lang attribute (with a value that begins
with "en"), not an element that inherits the lang attribute from its
enclosing element (parent).

However, _some_ per-language styling is thus possible, on some browsers.

-- 
Jukka Korpela
TIEKE Tietoyhteiskunnan kehittämiskeskus ry
Finnish Information Society Development Centre 
Salomonkatu 17 A, 10th floor, FIN - 00100 HELSINKI, FINLAND
Phone: +358 9 4763 0397 Fax: +358 9 4763 0399 
http://www.tieke.fi  jukka.korpela@tieke.fi
Received on Monday, 18 March 2002 02:39:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:01 GMT