Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / content-language-comma-separated-list.html
bloba62da02d206ff8e9eed0db89d8d961b9638df249
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="content-language" content="ja, zh_CN">
5 <script src="../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a>:
9 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests
10 that a comma-separated list of languages is ignored. This expectation may
11 change, see bug. The HTML5 spec says that content-language should not have
12 multiple languages, and decrees that a content-language containing a comma be
13 ignored; this <a
14 href="http://lists.w3.org/Archives/Public/public-html/2011Mar/0398.html">position has
15 been upheld</a> following significant debate. Firefox accepts a
16 comma-separated list and a CSS :lang selector for any language in the list is
17 matched. It's unclear what IE does.
18 </p>
19 <div id="console"></div>
20 <div id="x"></div>
21 <div id="y" lang="ar"></div>
22 <script>
23 function languageOfNode(id) {
24 var element = document.getElementById(id);
25 return window.getComputedStyle(element).webkitLocale;
27 shouldBeEqualToString("languageOfNode('x')", "auto");
28 shouldBeEqualToString("languageOfNode('y')", '"ar"');
29 </script>
30 </body>
31 </html>