- From: Robert O'Callahan <robert@ocallahan.org>
- Date: Wed, 1 May 2013 20:49:17 +1200
- To: Elliott Sprehn <esprehn@chromium.org>
- Cc: Peter Occil <poccil14@gmail.com>, WHATWG <whatwg@whatwg.org>
On Wed, May 1, 2013 at 8:01 PM, Elliott Sprehn <esprehn@chromium.org> wrote: > fwiw WebKit (and Blink) implement this through CSS inheritance since you > need to know the lang for all kinds of things and walking up the DOM > repeatedly would be expensive. > > -webkit-locale is inherited by default and contains the enclosing @lang > value. You can query it through getComputedStyle(node).webkitLocale. That > doesn't help your custom parser though. > Interesting. What does "body:lang(en) { -webkit-locale:fr; }" do? :-) Rob -- q“qIqfq qyqoquq qlqoqvqeq qtqhqoqsqeq qwqhqoq qlqoqvqeq qyqoquq,q qwqhqaqtq qcqrqeqdqiqtq qiqsq qtqhqaqtq qtqoq qyqoquq?q qEqvqeqnq qsqiqnqnqeqrqsq qlqoqvqeq qtqhqoqsqeq qwqhqoq qlqoqvqeq qtqhqeqmq.q qAqnqdq qiqfq qyqoquq qdqoq qgqoqoqdq qtqoq qtqhqoqsqeq qwqhqoq qaqrqeq qgqoqoqdq qtqoq qyqoquq,q qwqhqaqtq qcqrqeqdqiqtq qiqsq qtqhqaqtq qtqoq qyqoquq?q qEqvqeqnq qsqiqnqnqeqrqsq qdqoq qtqhqaqtq.q"
Received on Wednesday, 1 May 2013 08:49:43 UTC