OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <script src="resources/responsive-test.js"></script> | |
3 <script> | |
4 assertCSSResponsive({ | |
5 property: 'left', | |
6 from: 'inherit', | |
7 to: '200px', | |
8 configurations: [{ | |
9 state: {inherited: '100px'}, | |
10 expect: [ | |
11 {at: 0.25, is: '125px'}, | |
12 {at: 0.75, is: '175px'}, | |
13 ], | |
14 }, { | |
15 state: {inherited: 'auto'}, | |
16 expect: [ | |
17 {at: 0.25, is: 'auto'}, | |
18 {at: 0.75, is: '200px'}, | |
19 ], | |
20 }], | |
21 }); | |
22 | |
23 assertCSSResponsive({ | |
24 property: 'left', | |
25 from: '200px', | |
26 to: neutralKeyframe, | |
27 configurations: [{ | |
28 state: {underlying: '100px'}, | |
29 expect: [ | |
30 {at: 0.25, is: '175px'}, | |
31 {at: 0.75, is: '125px'}, | |
32 ], | |
33 }, { | |
34 state: {underlying: 'auto'}, | |
35 expect: [ | |
36 {at: 0.25, is: '200px'}, | |
37 {at: 0.75, is: 'auto'}, | |
38 ], | |
39 }, { | |
40 state: {underlying: 'inherit', inherited: '100px'}, | |
41 expect: [ | |
42 {at: 0.25, is: '175px'}, | |
43 {at: 0.75, is: '125px'}, | |
44 ], | |
45 }, { | |
46 state: {underlying: 'inherit', inherited: 'auto'}, | |
47 expect: [ | |
48 {at: 0.25, is: '200px'}, | |
49 {at: 0.75, is: 'auto'}, | |
50 ], | |
51 }], | |
52 }); | |
53 </script> | |
OLD | NEW |