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

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: Rebase 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 <style>
6 div {
7 background-size: 0px;
8 }
alancutter (OOO until 2018) 2015/09/18 02:55:09 Left over debugging code should be removed.
nainar 2015/09/18 03:47:25 Done.
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>
alancutter (OOO until 2018) 2015/09/18 02:55:09 target is never used.
nainar 2015/09/18 03:47:25 Done.
27 <div id = "target1"></div>
28
29 <script>
30 target1.style.backgroundImage = "-webkit-cross-fade(url(images1.jpg), url(imag es2.jpg), 0.5)";
31 test(function() {
32 assert_not_equals(target1.style.backgroundImage, getComputedStyle(target).ba ckgroundImage);
33 assert_equals(target1.style.backgroundImage, "-webkit-cross-fade(url(images1 .jpg), url(images2.jpg), 0.5)");
34 });
35 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698