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

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 UTC