summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/web-animations-api/resource-loading.html
blob: 39c7c311e8a7b4cc9b1f1b17989c315b60819dbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<style>
#target {
  width: 100px;
  height: 100px;
}
</style>
<div id='target'></div>
This test passes if it does not crash. Newly referenced resources in the Web Animations api should be resolved in the style building stage.
<script>
target.animate([
    {backgroundImage: 'url(../animations/resources/blue-100.png)', color: 'blue'},
    {backgroundImage: 'url(../animations/resources/green-100.png)', color: 'green'},
  ], {duration: 1, fill: 'forwards'});
if (window.testRunner) {
  testRunner.dumpAsText();
  testRunner.waitUntilDone();
}
requestAnimationFrame(function() {
    if (window.testRunner) {
        testRunner.notifyDone();
    }
});
</script>