OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="resources/responsive-test.js"></script> | 2 <script src="resources/responsive-test.js"></script> |
3 <script> | 3 <script> |
4 assertCSSResponsive({ | 4 assertCSSResponsive({ |
5 targetTag: 'path', | 5 targetTag: 'path', |
6 property: 'd', | 6 property: 'd', |
7 from: "inherit", | 7 from: "inherit", |
8 to: "path('M 10 20 H 30')", | 8 to: "path('M 10 20 H 30')", |
9 configurations: [{ | 9 configurations: [{ |
10 state: {inherited: "path('M 90 60 H 34')"}, | 10 state: {inherited: "path('M 90 60 H 34')"}, |
11 expect: [ | 11 expect: [ |
12 {at: 0.25, is: "path('M 70 50 H 33')"}, | 12 {at: 0.25, is: "path('M 70 50 H 33')"}, |
13 {at: 0.75, is: "path('M 30 30 H 31')"}, | 13 {at: 0.75, is: "path('M 30 30 H 31')"}, |
14 ], | 14 ], |
15 }, { | 15 }, { |
16 state: {inherited: "path('M 6 0 H 70')"}, | 16 state: {inherited: "path('M 6 0 H 70')"}, |
17 expect: [ | 17 expect: [ |
18 {at: 0.25, is: "path('M 7 5 H 60')"}, | 18 {at: 0.25, is: "path('M 7 5 H 60')"}, |
19 {at: 0.75, is: "path('M 9 15 H 40')"}, | 19 {at: 0.75, is: "path('M 9 15 H 40')"}, |
20 ], | 20 ], |
21 }, { | 21 }, { |
22 state: {inherited: "none"}, | 22 state: {inherited: "none"}, |
23 expect: [ | 23 expect: [ |
24 {at: 0.25, is: "none"}, | 24 {at: 0.25, is: "none"}, |
25 {at: 0.75, is: "path('M 10 20 H 30')"}, | 25 {at: 0.75, is: "path('M 10 20 H 30')"}, |
26 ], | 26 ], |
27 }], | 27 }], |
28 }); | 28 }); |
29 </script> | 29 </script> |
OLD | NEW |