OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 |
| 5 <style> |
| 6 div { |
| 7 background-size: 0px; |
| 8 } |
| 9 |
| 10 #target { |
| 11 background-image: url(images.jpg); |
| 12 animation: test 2e8s; |
| 13 animation-delay: -1e8s; |
| 14 } |
| 15 |
| 16 @keyframes test{ |
| 17 from { |
| 18 background-image: url(images1.jpg) |
| 19 } |
| 20 to { |
| 21 background-image: url(images2.jpg) |
| 22 } |
| 23 } |
| 24 </style> |
| 25 |
| 26 <div id="target"></div> |
| 27 <div id = "target1"></div> |
| 28 |
| 29 <script> |
| 30 addEventListener("load", function() { |
| 31 test(function() { |
| 32 target1.style.backgroundImage = "-webkit-cross-fade(url(images1.jpg), url(im
ages2.jpg), 0.5)"; |
| 33 assert_not_equals(target1.style.backgroundImage, getComputedStyle(target).ba
ckgroundImage); |
| 34 assert_equals(target1.style.backgroundImage, "-webkit-cross-fade(url(images1
.jpg), url(images2.jpg), 0.5)"); |
| 35 }, 'Testing getComputedStyle.backgroundImage returns absolute URlS and style.b
ackgroundImage returns relative URLs\n'); |
| 36 }, false); |
| 37 </script> |
OLD | NEW |