W3C home > Mailing lists > Public > www-international@w3.org > July to September 2012

Re: The :lang() selector and font-size in %

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 19 Sep 2012 15:21:42 -0700
Message-ID: <505A4576.8020205@inkedblade.net>
To: Gunnar Bittersmann <gunnar@bittersmann.de>
CC: www-international@w3.org
On 09/19/2012 06:43 AM, Gunnar Bittersmann wrote:
> Am 2012-09-19 15:31, schrieb Najib Tounsi:
>> the word Français will be italicized, OK, but amplified 130% twice!
>
> I see your point.
>
>> Here, *[lang="fr"] selector would be more appropriate.
>
> Hm, I don’t think I would go this way. I’d rather add another rule to the stylesheet:
>
> :lang(fr) * { font-size: inherit; }
>
> (or 100% if you care about dinosaur browsers). See http://dabblet.com/gist/3749725

That doesn't work if you nest things.

   <p lang="fr"> <span lang="en"> <em lang="fr"> ... </></></>

~fantasai
Received on Wednesday, 19 September 2012 22:22:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 19 September 2012 22:22:11 GMT