5 <title>multiple shadow transitions
</title>
6 <style type=
"text/css" media=
"screen">
11 border:
1px solid black;
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;
21 -webkit-box-shadow:
0 -
20px
10px red,
0 20px
10px blue;
22 text-shadow:
0 -
20px
10px red,
0 20px
10px blue;
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 */
32 -webkit-box-shadow:
0 -
20px
10px red,
0 20px
10px blue;
33 text-shadow:
0 -
20px
10px red,
0 20px
10px blue;
37 -webkit-box-shadow:
0 -
20px
10px red;
38 text-shadow:
0 -
20px
10px red;
42 -webkit-box-shadow:
0 20px
10px blue;
43 text-shadow:
0 20px
10px blue;
47 -webkit-box-shadow:
0 -
20px
10px red,
0 20px
10px blue;
48 text-shadow:
0 -
20px
10px red,
0 20px
10px blue;
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],
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);
75 <div id=
"box" class=
"box">BOX
</div>
76 <div id=
"box2" class=
"box">BOX
</div>
77 <div id=
"box3" class=
"box">BOX
</div>