Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(453)

Side by Side Diff: LayoutTests/fast/css/getComputedStyle-relativeURL.html

Issue 1306283006: BackgroundImage incorrectly returns empty url() when created on-the-fly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: As per feedback Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4
5 <div id = "target1"></div>
alancutter (OOO until 2018) 2015/09/21 00:57:47 s/target1/target/ Spaces around the = is inconsist
nainar 2015/09/21 01:27:36 Done.
6
7 <script>
8 target1.style.backgroundImage = "-webkit-cross-fade(url(images1.jpg), url(imag es2.jpg), 0.5)";
9 test(function() {
10 assert_not_equals(target1.style.backgroundImage, getComputedStyle(target1).b ackgroundImage);
alancutter (OOO until 2018) 2015/09/21 00:57:47 This is a fairly weak assertion. You can build the
nainar 2015/09/21 01:27:36 Done.
11 assert_equals(target1.style.backgroundImage, "-webkit-cross-fade(url(images1 .jpg), url(images2.jpg), 0.5)");
12 }, 'Testing that getComputedStyle.backgroundImage returns absolute URLs and st yle.backgroundImage returns relative URLs');
13 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698