OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description("This tests checks that all of the input values for obje
ct-position parse correctly."); | 8 description("This tests checks that all of the input values for obje
ct-position parse correctly."); |
9 | 9 |
10 function test(value) | 10 function test(value) |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 shouldBeEqualToString('test("object-position: 3em 0;")', '3em 0px'); | 58 shouldBeEqualToString('test("object-position: 3em 0;")', '3em 0px'); |
59 shouldBeEqualToString('test("object-position: left 33px;")', '0% 33p
x'); | 59 shouldBeEqualToString('test("object-position: left 33px;")', '0% 33p
x'); |
60 shouldBeEqualToString('test("object-position: center 33px;")', '50%
33px'); | 60 shouldBeEqualToString('test("object-position: center 33px;")', '50%
33px'); |
61 shouldBeEqualToString('test("object-position: 33px center;")', '33px
50%'); | 61 shouldBeEqualToString('test("object-position: 33px center;")', '33px
50%'); |
62 shouldBeEqualToString('test("object-position: 33px bottom;")', '33px
100%'); | 62 shouldBeEqualToString('test("object-position: 33px bottom;")', '33px
100%'); |
63 shouldBeEqualToString('test("object-position: 1vh 1vw;")', '1vh 1vw'
); | 63 shouldBeEqualToString('test("object-position: 1vh 1vw;")', '1vh 1vw'
); |
64 shouldBeEqualToString('test("object-position: left 20px center;")',
'left 20px top 50%'); | 64 shouldBeEqualToString('test("object-position: left 20px center;")',
'left 20px top 50%'); |
65 shouldBeEqualToString('test("object-position: center bottom 25%;")',
'left 50% bottom 25%'); | 65 shouldBeEqualToString('test("object-position: center bottom 25%;")',
'left 50% bottom 25%'); |
66 shouldBeEqualToString('test("object-position: bottom 20px right 12px
;")', 'right 12px bottom 20px'); | 66 shouldBeEqualToString('test("object-position: bottom 20px right 12px
;")', 'right 12px bottom 20px'); |
67 | 67 |
68 shouldBeNull('test("object-position: 100px 100px 100px;")'); | 68 shouldBeEqualToString('test("object-position: 100px 100px 100px;")',
''); |
69 shouldBeNull('test("object-position: 100px 100px 200px 200px;")'); | 69 shouldBeEqualToString('test("object-position: 100px 100px 200px 200p
x;")', ''); |
70 shouldBeNull('test("object-position: top left center;")'); | 70 shouldBeEqualToString('test("object-position: top left center;")', '
'); |
71 shouldBeNull('test("object-position: top top;")'); | 71 shouldBeEqualToString('test("object-position: top top;")', ''); |
72 shouldBeNull('test("object-position: top bottom;")'); | 72 shouldBeEqualToString('test("object-position: top bottom;")', ''); |
73 shouldBeNull('test("object-position: 33px left;")'); | 73 shouldBeEqualToString('test("object-position: 33px left;")', ''); |
74 shouldBeNull('test("object-position: top 33px;")'); | 74 shouldBeEqualToString('test("object-position: top 33px;")', ''); |
75 shouldBeNull('test("object-position: inherit inherit;")'); | 75 shouldBeEqualToString('test("object-position: inherit inherit;")', '
'); |
76 shouldBeNull('test("object-position: initial initial;")'); | 76 shouldBeEqualToString('test("object-position: initial initial;")', '
'); |
77 shouldBeNull('test("object-position: -webkit-fill-available;")'); | 77 shouldBeEqualToString('test("object-position: -webkit-fill-available
;")', ''); |
78 shouldBeNull('test("object-position: min-content;")'); | 78 shouldBeEqualToString('test("object-position: min-content;")', ''); |
79 shouldBeNull('test("object-position: intrinsic;")'); | 79 shouldBeEqualToString('test("object-position: intrinsic;")', ''); |
80 shouldBeNull('test("object-position: auto;")'); | 80 shouldBeEqualToString('test("object-position: auto;")', ''); |
81 shouldBeNull('test("object-position: none;")'); | 81 shouldBeEqualToString('test("object-position: none;")', ''); |
82 shouldBeNull('test("object-position: fill;")'); | 82 shouldBeEqualToString('test("object-position: fill;")', ''); |
83 </script> | 83 </script> |
84 </body> | 84 </body> |
85 </html> | 85 </html> |
OLD | NEW |