| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <script src="resources/responsive-test.js"></script> | |
| 3 <script> | |
| 4 assertCSSResponsive({ | |
| 5 property: 'font-weight', | |
| 6 from: 'inherit', | |
| 7 to: '500', | |
| 8 configurations: [{ | |
| 9 state: {inherited: '100'}, | |
| 10 expect: [ | |
| 11 {at: 0.25, is: '200'}, | |
| 12 {at: 0.75, is: '400'}, | |
| 13 ], | |
| 14 }, { | |
| 15 state: {inherited: '900'}, | |
| 16 expect: [ | |
| 17 {at: 0.25, is: '800'}, | |
| 18 {at: 0.75, is: '600'}, | |
| 19 ], | |
| 20 }], | |
| 21 }); | |
| 22 | |
| 23 assertCSSResponsive({ | |
| 24 property: 'font-weight', | |
| 25 from: 'bolder', | |
| 26 to: 'lighter', | |
| 27 configurations: [{ | |
| 28 state: {inherited: '300'}, | |
| 29 expect: [ | |
| 30 {at: 0.25, is: '300'}, | |
| 31 {at: 0.75, is: '200'}, | |
| 32 ], | |
| 33 }, { | |
| 34 state: {inherited: '500'}, | |
| 35 expect: [ | |
| 36 {at: 0.25, is: '600'}, | |
| 37 {at: 0.75, is: '300'}, | |
| 38 ], | |
| 39 }], | |
| 40 }); | |
| 41 </script> | |
| OLD | NEW |