Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / getComputedStyle-relativeURL.html
blobc35dd05cf04b044fe3d24b45a6b56e977d0622f0
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
5 <div id="target"></div>
7 <script>
8 target.style.backgroundImage = "-webkit-cross-fade(url(images1.jpg), url(images2.jpg), 0.5)";
9 test(function() {
10 var expected = "-webkit-cross-fade(url(" + location.href.replace('getComputedStyle-relativeURL.html', 'images1.jpg') + "), url(" + location.href.replace('getComputedStyle-relativeURL.html', 'images2.jpg') + "), 0.5)";
11 assert_equals(getComputedStyle(target).backgroundImage, expected);
12 assert_equals(target.style.backgroundImage, "-webkit-cross-fade(url(images1.jpg), url(images2.jpg), 0.5)");
13 }, 'Testing that getComputedStyle.backgroundImage returns absolute URLs and style.backgroundImage returns relative URLs');
14 </script>