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