Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: LayoutTests/fast/css/content-language-comma-separated-list.html

Issue 973623002: Fix serialization of content property to always quote (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add another method Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta http-equiv="content-language" content="ja, zh_CN"> 4 <meta http-equiv="content-language" content="ja, zh_CN">
5 <script src="../../resources/js-test.js"></script> 5 <script src="../../resources/js-test.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a >: 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 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 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 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 12 multiple languages, and decrees that a content-language containing a comma be
13 ignored; this <a 13 ignored; this <a
14 href="http://lists.w3.org/Archives/Public/public-html/2011Mar/0398.html">positio n has 14 href="http://lists.w3.org/Archives/Public/public-html/2011Mar/0398.html">positio n has
15 been upheld</a> following significant debate. Firefox accepts a 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 16 comma-separated list and a CSS :lang selector for any language in the list is
17 matched. It's unclear what IE does. 17 matched. It's unclear what IE does.
18 </p> 18 </p>
19 <div id="console"></div> 19 <div id="console"></div>
20 <div id="x"></div> 20 <div id="x"></div>
21 <div id="y" lang="ar"></div> 21 <div id="y" lang="ar"></div>
22 <script> 22 <script>
23 function languageOfNode(id) { 23 function languageOfNode(id) {
24 var element = document.getElementById(id); 24 var element = document.getElementById(id);
25 return window.getComputedStyle(element).webkitLocale; 25 return window.getComputedStyle(element).webkitLocale;
26 } 26 }
27 shouldBeEqualToString("languageOfNode('x')", "auto"); 27 shouldBeEqualToString("languageOfNode('x')", "auto");
28 shouldBeEqualToString("languageOfNode('y')", "ar"); 28 shouldBeEqualToString("languageOfNode('y')", "'ar'");
29 </script> 29 </script>
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698