3 Copyright (c) 2012 Intel Corporation.
5 Redistribution and use in source and binary forms, with or without modification,
6 are permitted provided that the following conditions are met:
8 * Redistributions of works must retain the original copyright notice, this list
9 of conditions and the following disclaimer.
10 * Redistributions in binary form must reproduce the original copyright notice,
11 this list of conditions and the following disclaimer in the documentation
12 and/or other materials provided with the distribution.
13 * Neither the name of Intel Corporation nor the names of its contributors
14 may be used to endorse or promote products derived from this work without
15 specific prior written permission.
17 THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
18 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
21 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
24 OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 Hao, Yunfei <yunfenx.hao@intel.com>
35 <title>WRT Test: css-animation-background-enable</title>
36 <link rel="author" title="Intel" href="http://www.intel.com" />
37 <link rel="help" href="" />
38 <meta name="flags" content="" />
39 <meta name="assert" content="Check if WRT is able to continue render CSS animation when Web Application enters invisible state while background support is enabled" />
40 <meta charset="utf-8">
48 -webkit-animation:ani 500s;
51 @-webkit-keyframes ani
53 0% {background:red; left:0px; top:0px;}
54 1% {background:yellow; left:200px; top:0px;}
55 3% {background:blue; left:400px; top:0px;}
56 75% {background:blue; left:600px; top:0px;}
57 100% {background:blue; left:800px; top:0px;}
66 <p><b>CSS3 Animation Test:</b> </br>
67 1.When the moving block turn to yellow color (the right-side of the block arrived in 300px), press the "Home" button on device.</br>
68 Expcted:turn to the home screen.</br>
69 2.Hold on longer than 10 seconds then turn back to this page by click the icon on the home screen or use the command "wrt-launcher -s wrt3css171".</br>
70 Expcted:the block continue turn the color from yellow to blue, and became really bule when arrived at 500px</br>
72 <p>0px- - - - - - - - - - - - - - - - - - - 300px - - - - - - - - - - - - 500px</p>
73 <p style="border-top:1px solid #ccc;width:300px;" ></p>
74 <p style="border-top:1px solid #ccc;width:500px;" ></p>
75 <div class="main"></div>
76 <input type="button" value="RELOAD" onclick="javascript:window.top.location.reload()" />