Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / content-language-only-whitespace.html
blob8c6315d3aa4893856521fee0a303d2d23716acd4
1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="content-language" content="
5 ">
6 <script src="../../resources/js-test.js"></script>
7 </head>
8 <body>
9 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a>:
10 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests
11 that a content-language with whitespace-only content is ignored. This
12 expectation may change, see bug. HTML5 decrees that the meta element be ignored
13 in case of whitespace only content. It's unclear what other browsers do.</p>
14 <div id="console"></div>
15 <div id="x"></div>
16 <div id="y" lang="ar"></div>
17 <script>
18 function languageOfNode(id) {
19 var element = document.getElementById(id);
20 return window.getComputedStyle(element).webkitLocale;
22 shouldBeEqualToString("languageOfNode('x')", "auto");
23 shouldBeEqualToString("languageOfNode('y')", '"ar"');
24 </script>
25 </body>
26 </html>