| OLD | NEW |
| (Empty) |
| 1 <script src="../../../resources/testharness.js"></script> | |
| 2 <script src="../../../resources/testharnessreport.js"></script> | |
| 3 <div id="target"> | |
| 4 <script> | |
| 5 var testCases = [ | |
| 6 ['-webkit-box-reflect', 'below 0px url(\"chrome:\") 0 fill / auto / 0px stretc
h'], | |
| 7 ['-webkit-mask-box-image-source', 'url("chrome:")'], | |
| 8 ['-webkit-mask-image', 'url("chrome:")'], | |
| 9 ['background-image', 'url("chrome:")'], | |
| 10 ['border-image-source', 'url("chrome:")'], | |
| 11 ['list-style-image', 'url("chrome:")'], | |
| 12 ['shape-outside', 'url("chrome:")'], | |
| 13 ]; | |
| 14 | |
| 15 test(() => { | |
| 16 for ([property, value] of testCases) { | |
| 17 target.style[property] = value; | |
| 18 } | |
| 19 var computedStyle = getComputedStyle(target); | |
| 20 for ([property, value] of testCases) { | |
| 21 assert_equals(computedStyle[property], value, property); | |
| 22 } | |
| 23 }, 'Disallowed URL protocols should serialise as their original URL strings'); | |
| 24 </script> | |
| OLD | NEW |