Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / transitions / multiple-shadow-transitions.html
blob96599ec9fa5a3a4315800260e518620125c3f1e8
1 <!DOCTYPE>
3 <html lang="en">
4 <head>
5 <title>multiple shadow transitions</title>
6 <style type="text/css" media="screen">
7 .box {
8 height: 100px;
9 width: 100px;
10 margin: 50px;
11 border: 1px solid black;
12 text-align: center;
13 padding: 20px;
14 background-repeat: no-repeat;
15 -webkit-transition-duration: 1s;
16 -webkit-transition-timing-function: linear;
17 -webkit-transition-property: -webkit-box-shadow, text-shadow;
20 #box {
21 -webkit-box-shadow: 0 -20px 10px red, 0 20px 10px blue;
22 text-shadow: 0 -20px 10px red, 0 20px 10px blue;
25 #box.final {
26 -webkit-box-shadow: 0 20px 10px red, 0 -20px 10px blue;
27 text-shadow: 0 20px 10px red, 0 -20px 10px blue;
30 /* Mismatched layers */
31 #box2 {
32 -webkit-box-shadow: 0 -20px 10px red, 0 20px 10px blue;
33 text-shadow: 0 -20px 10px red, 0 20px 10px blue;
36 #box2.final {
37 -webkit-box-shadow: 0 -20px 10px red;
38 text-shadow: 0 -20px 10px red;
41 #box3 {
42 -webkit-box-shadow: 0 20px 10px blue;
43 text-shadow: 0 20px 10px blue;
46 #box3.final {
47 -webkit-box-shadow: 0 -20px 10px red, 0 20px 10px blue;
48 text-shadow: 0 -20px 10px red, 0 20px 10px blue;
51 </style>
52 <script src="transition-test-helpers.js" type="text/javascript" charset="utf-8"></script>
53 <script type="text/javascript" charset="utf-8">
55 const expectedValues = [
56 // [time, element-id, property, expected-value, tolerance]
57 [0.5, 'box', '-webkit-box-shadow', [0, 0, 0, 0], 4],
58 [0.5, 'box2', '-webkit-box-shadow', [0, -10, 0, 0], 4],
59 [0.5, 'box3', '-webkit-box-shadow', [0, -10, 0, 20], 4],
62 function setupTest()
64 document.getElementById('box').className = 'box final';
65 document.getElementById('box2').className = 'box final';
66 document.getElementById('box3').className = 'box final';
69 runTransitionTest(expectedValues, setupTest, true);
71 </script>
72 </head>
73 <body>
75 <div id="box" class="box">BOX</div>
76 <div id="box2" class="box">BOX</div>
77 <div id="box3" class="box">BOX</div>
79 <div id="result">
80 </div>
82 </body>
83 </html>