Index: LayoutTests/fast/css/getComputedStyle-relativeURL.html |
diff --git a/LayoutTests/fast/css/getComputedStyle-relativeURL.html b/LayoutTests/fast/css/getComputedStyle-relativeURL.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c02de6b10afec84acd8baaf3abfbe972c7ad80df |
--- /dev/null |
+++ b/LayoutTests/fast/css/getComputedStyle-relativeURL.html |
@@ -0,0 +1,37 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+ |
+<style> |
+div { |
+ background-size: 0px; |
+} |
+ |
+#target { |
+ background-image: url(images.jpg); |
+ animation: test 2e8s; |
+ animation-delay: -1e8s; |
+} |
+ |
+@keyframes test{ |
+ from { |
+ background-image: url(images1.jpg) |
+ } |
+ to { |
+ background-image: url(images2.jpg) |
+ } |
+} |
+</style> |
+ |
+<div id="target"></div> |
+<div id = "target1"></div> |
+ |
+<script> |
+addEventListener("load", function() { |
+ test(function() { |
+ target1.style.backgroundImage = "-webkit-cross-fade(url(images1.jpg), url(images2.jpg), 0.5)"; |
+ assert_not_equals(target1.style.backgroundImage, getComputedStyle(target).backgroundImage); |
+ assert_equals(target1.style.backgroundImage, "-webkit-cross-fade(url(images1.jpg), url(images2.jpg), 0.5)"); |
+ }, 'Testing getComputedStyle.backgroundImage returns absolute URlS and style.backgroundImage returns relative URLs\n'); |
+}, false); |
+</script> |