Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / content-language-late.html
blobfc813dba029cff319fb5e0a3f9008a3a19f6f663
1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a>:
8 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests
9 that a content-language is used even if it appears at the end of the document.
10 This expectation may change, see bug. According to the HTML 5 spec, a meta
11 element should be processed when it is inserted into the document, regardless
12 of where. IE and Firefox also seem to process the content-language at the end
13 of the document.
14 </p>
15 <div id="console"></div>
16 <div id="x"></div>
17 <div id="y" lang="ar"></div>
18 <script>
19 function languageOfNode(id) {
20 var element = document.getElementById(id);
21 return window.getComputedStyle(element).webkitLocale;
23 shouldBeEqualToString("languageOfNode('x')", '"ja-JP"');
24 shouldBeEqualToString("languageOfNode('y')", '"ar"');
25 </script>
26 <meta http-equiv="content-language" content="ja-JP">
27 </body>
28 </html>