OLD | NEW |
1 This tests checks that all of the input values for background-size parse correct
ly. | 1 This tests checks that all of the input values for background-size parse correct
ly. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS test("background-size: contain;") is "contain" | 6 PASS test("background-size: contain;") is "contain" |
7 PASS test("background-size: cover;") is "cover" | 7 PASS test("background-size: cover;") is "cover" |
8 PASS test("background-size: 100 100;") is "100px" | 8 PASS test("background-size: 100 100;") is "100px 100px" |
9 PASS test("background-size: 100px 100px;") is "100px" | 9 PASS test("background-size: 100px 100px;") is "100px 100px" |
10 PASS test("background-size: auto 50px;") is "auto 50px" | 10 PASS test("background-size: auto 50px;") is "auto 50px" |
11 PASS test("background-size: 50px auto;") is "50px" | 11 PASS test("background-size: 50px auto;") is "50px" |
12 PASS test("background-size: auto auto;") is "auto" | 12 PASS test("background-size: auto auto;") is "auto" |
13 PASS test("background-size: 30% 20%;") is "30% 20%" | 13 PASS test("background-size: 30% 20%;") is "30% 20%" |
14 PASS test("background-size: 4em auto;") is "4em" | 14 PASS test("background-size: 4em auto;") is "4em" |
15 PASS test("background-size: 5em;") is "5em" | 15 PASS test("background-size: 5em;") is "5em" |
16 PASS test("-webkit-background-size: 5em ;") is "5em" | 16 PASS test("-webkit-background-size: 5em ;") is "5em" |
17 PASS test("background-size: 100 100 100;") is null | 17 PASS test("background-size: 100 100 100;") is null |
18 PASS test("background-size: coconut;") is null | 18 PASS test("background-size: coconut;") is null |
19 PASS test("background-size: 100px,;") is null | 19 PASS test("background-size: 100px,;") is null |
20 PASS test("background-size: 100px, 50%;") is "100px, 50%" | 20 PASS test("background-size: 100px, 50%;") is "100px, 50%" |
21 PASS test("-webkit-background-size: 100px, 50%;") is "100px, 50%" | 21 PASS test("-webkit-background-size: 100px, 50%;") is "100px, 50%" |
22 PASS test("background-size: 50% 100px, 2em, 100px 50%;") is "50% 100px, 2em, 100
px 50%" | 22 PASS test("background-size: 50% 100px, 2em, 100px 50%;") is "50% 100px, 2em, 100
px 50%" |
23 PASS test("-webkit-background-size: 50% 100px, 2em, 100px 50%;") is "50% 100px,
2em, 100px 50%" | 23 PASS test("-webkit-background-size: 50% 100px, 2em, 100px 50%;") is "50% 100px,
2em, 100px 50%" |
24 PASS successfullyParsed is true | 24 PASS successfullyParsed is true |
25 | 25 |
26 TEST COMPLETE | 26 TEST COMPLETE |
27 | 27 |
OLD | NEW |