Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / url-with-multi-byte-unicode-escape.html
blob00d8de20376e2d743937bf40de0069da8e2be322
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>#test { background-image: url("data:\100")} #test { background-color: green !important }</style>
5 <script src="../../resources/js-test.js"></script>
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
9 </script>
10 </head>
11 <body>
12 <div id="test" style="width: 100px; height: 100px; background-color: red"></div>
13 <script>
14 description('Test parsing a CSS URI containing a multi-byte Unicode escape sequence.');
15 shouldBe('document.styleSheets[0].cssRules.length', '2');
16 shouldBeEqualToString('document.styleSheets[0].cssRules[0].style.getPropertyValue("background-image")', 'url(data:' + decodeURIComponent('%C4%80') + ')');
17 shouldBeEqualToString('document.styleSheets[0].cssRules[1].style.getPropertyValue("background-color")', 'green');
18 shouldBeEqualToString('window.getComputedStyle(document.getElementById("test")).getPropertyValue("background-color")', 'rgb(0, 128, 0)');
19 </script>
20 </body>
21 </html>