4 <style>#test { background-image: url(
"data:\100")} #test { background-color: green !important }
</style>
5 <script src=
"../../resources/js-test.js"></script>
8 testRunner
.dumpAsText();
12 <div id=
"test" style=
"width: 100px; height: 100px; background-color: red"></div>
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)');