OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style> | 5 <style> |
6 .box { | 6 .box { |
7 display: inline-block; | 7 display: inline-block; |
8 height: 100px; | 8 height: 100px; |
9 width: 100px; | 9 width: 100px; |
10 margin: 20px; | 10 margin: 20px; |
(...skipping 27 matching lines...) Expand all Loading... |
38 box-shadow: 20px 20px 10px black inset; | 38 box-shadow: 20px 20px 10px black inset; |
39 } | 39 } |
40 | 40 |
41 </style> | 41 </style> |
42 <script src="../animations/resources/animation-test-helpers.js"></script> | 42 <script src="../animations/resources/animation-test-helpers.js"></script> |
43 <script type="text/javascript"> | 43 <script type="text/javascript"> |
44 | 44 |
45 const expectedValues = [ | 45 const expectedValues = [ |
46 // [time, element-id, property, expected-value, tolerance] | 46 // [time, element-id, property, expected-value, tolerance] |
47 // For box-shadow, we test shadow-x and shadow-y to see if it's animating. | 47 // For box-shadow, we test shadow-x and shadow-y to see if it's animating. |
48 [0.25, 'none-to-normal', 'box-shadow', [10, 10], 1], | 48 [0.3, 'none-to-normal', 'box-shadow', 'rgba(0, 0, 0, 0.6) 12px 12px 6px 0p
x', 1], |
49 [0.25, 'none-to-inset', 'box-shadow', [10, 10], 1], | 49 [0.3, 'none-to-inset', 'box-shadow', 'rgba(0, 0, 0, 0.6) 12px 12px 6px 0px
inset', 1], |
50 [0.25, 'inset-to-normal', 'box-shadow', [20, 20], 1], | 50 [0.3, 'inset-to-normal', 'box-shadow', 'rgb(0, 0, 0) 20px 20px 10px 0px',
1], |
51 [0.25, 'normal-to-inset', 'box-shadow', [20, 20], 1], | 51 [0.3, 'normal-to-inset', 'box-shadow', 'rgb(0, 0, 0) 20px 20px 10px 0px in
set', 1], |
52 ]; | 52 ]; |
53 | 53 |
54 function setupTest() | 54 function setupTest() |
55 { | 55 { |
56 document.body.className = 'final'; | 56 document.body.className = 'final'; |
57 } | 57 } |
58 | 58 |
59 runTransitionTest(expectedValues, setupTest); | 59 runTransitionTest(expectedValues, setupTest); |
60 </script> | 60 </script> |
61 </head> | 61 </head> |
62 <body> | 62 <body> |
63 | 63 |
64 <div id="none-to-normal" class="box"></div> | 64 <div id="none-to-normal" class="box"></div> |
65 <div id="none-to-inset" class="box"></div> | 65 <div id="none-to-inset" class="box"></div> |
66 <div id="inset-to-normal" class="box"></div> | 66 <div id="inset-to-normal" class="box"></div> |
67 <div id="normal-to-inset" class="box"></div> | 67 <div id="normal-to-inset" class="box"></div> |
68 | 68 |
69 <div id="result"> | 69 <div id="result"> |
70 </div> | 70 </div> |
71 | 71 |
72 </body> | 72 </body> |
73 </html> | 73 </html> |
OLD | NEW |