OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../resources/testharness.js"></script> | 2 <script src="../resources/testharness.js"></script> |
3 <script src="../resources/testharnessreport.js"></script> | 3 <script src="../resources/testharnessreport.js"></script> |
4 <div id="target" style="width: 200px; height: 100px; display: inline-block"></di
v> | 4 <div id="target" style="width: 200px; height: 100px; display: inline-block"></di
v> |
5 <script src="resources/parsing-test-helper.js"></script> | 5 <script src="resources/parsing-test-helper.js"></script> |
6 <script> | 6 <script> |
7 expect = expect.bind(this, 'transform-origin', 'transformOrigin'); | 7 expect = expect.bind(this, 'transform-origin', 'transformOrigin'); |
8 | 8 |
9 expect('initial').parsesAs('initial').isComputedTo('100px 50px'); | 9 expect('initial').parsesAs('initial').isComputedTo('100px 50px'); |
10 expect('inherit').parsesAs('inherit'); | 10 expect('inherit').parsesAs('inherit'); |
11 | 11 |
12 expect('left').parsesAs('left 50% 0px').isComputedTo('0px 50px'); | 12 expect('left').parsesAs('left center 0px').isComputedTo('0px 50px'); |
13 expect('center').parsesAs('center 50% 0px').isComputedTo('100px 50px'); | 13 expect('center').parsesAs('center center 0px').isComputedTo('100px 50px'); |
14 expect('right').parsesAs('right 50% 0px').isComputedTo('200px 50px'); | 14 expect('right').parsesAs('right center 0px').isComputedTo('200px 50px'); |
15 expect('top').parsesAs('50% top 0px'); | 15 expect('top').parsesAs('center top 0px'); |
16 expect('bottom').parsesAs('50% bottom 0px'); | 16 expect('bottom').parsesAs('center bottom 0px'); |
17 expect('0').parsesAs('0px 50% 0px'); | 17 expect('0').parsesAs('0px center 0px'); |
18 expect('10%').parsesAs('10% 50% 0px').isComputedTo('20px 50px'); | 18 expect('10%').parsesAs('10% center 0px').isComputedTo('20px 50px'); |
19 expect('10px').parsesAs('10px 50% 0px').isComputedTo('10px 50px'); | 19 expect('10px').parsesAs('10px center 0px').isComputedTo('10px 50px'); |
20 | 20 |
21 expect('left top').parsesAs('left top 0px'); | 21 expect('left top').parsesAs('left top 0px'); |
22 expect('right bottom').parsesAs('right bottom 0px'); | 22 expect('right bottom').parsesAs('right bottom 0px'); |
23 expect('center center').parsesAs('center center 0px').isComputedTo('100px 50px')
; | 23 expect('center center').parsesAs('center center 0px').isComputedTo('100px 50px')
; |
24 expect('center top').parsesAs('center top 0px'); | 24 expect('center top').parsesAs('center top 0px'); |
25 expect('center left').parsesAs('left center 0px'); | 25 expect('center left').parsesAs('left center 0px'); |
26 expect('top right').parsesAs('right top 0px'); | 26 expect('top right').parsesAs('right top 0px'); |
27 expect('left 10%').parsesAs('left 10% 0px'); | 27 expect('left 10%').parsesAs('left 10% 0px'); |
28 expect('left 10px').parsesAs('left 10px 0px'); | 28 expect('left 10px').parsesAs('left 10px 0px'); |
29 expect('10% top').parsesAs('10% top 0px'); | 29 expect('10% top').parsesAs('10% top 0px'); |
(...skipping 14 matching lines...) Expand all Loading... |
44 | 44 |
45 expect('left right').isInvalid(); | 45 expect('left right').isInvalid(); |
46 expect('top bottom').isInvalid(); | 46 expect('top bottom').isInvalid(); |
47 expect('none').isInvalid(); | 47 expect('none').isInvalid(); |
48 expect('20').isInvalid(); | 48 expect('20').isInvalid(); |
49 expect('10% 20% 30%').isInvalid(); | 49 expect('10% 20% 30%').isInvalid(); |
50 expect('top 10%').isInvalid(); | 50 expect('top 10%').isInvalid(); |
51 expect('bottom 10%').isInvalid(); | 51 expect('bottom 10%').isInvalid(); |
52 expect('50% 50% 0px 0px').isInvalid(); | 52 expect('50% 50% 0px 0px').isInvalid(); |
53 </script> | 53 </script> |
OLD | NEW |