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("Test window.CSS.supports()"); | 8 description("Test window.CSS.supports()"); |
9 | 9 |
10 shouldBeTrue('CSS.supports("(display: none)")'); | 10 shouldBeTrue('CSS.supports("(display: none)")'); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 shouldBeFalse('CSS.supports("", "")'); | 77 shouldBeFalse('CSS.supports("", "")'); |
78 shouldBeFalse('CSS.supports(true, "")'); | 78 shouldBeFalse('CSS.supports(true, "")'); |
79 shouldBeFalse('CSS.supports([], "none")'); | 79 shouldBeFalse('CSS.supports([], "none")'); |
80 shouldBeFalse('CSS.supports("display", "")'); | 80 shouldBeFalse('CSS.supports("display", "")'); |
81 shouldBeFalse('CSS.supports("display:", "none")'); | 81 shouldBeFalse('CSS.supports("display:", "none")'); |
82 shouldBeTrue('CSS.supports("z-index", 1)'); | 82 shouldBeTrue('CSS.supports("z-index", 1)'); |
83 shouldBeFalse('CSS.supports("content", [])'); | 83 shouldBeFalse('CSS.supports("content", [])'); |
84 shouldBeFalse('CSS.supports("content", "!important")'); | 84 shouldBeFalse('CSS.supports("content", "!important")'); |
85 shouldBeFalse('CSS.supports("(display: none)", undefined)'); | 85 shouldBeFalse('CSS.supports("(display: none)", undefined)'); |
86 | 86 |
| 87 // Test that __qem is internal |
| 88 shouldBeFalse('CSS.supports("margin", "1__qem")'); |
| 89 |
87 // shorthands and CSS wide keywords | 90 // shorthands and CSS wide keywords |
88 shouldBeTrue('CSS.supports("border", "1px solid #000")'); | 91 shouldBeTrue('CSS.supports("border", "1px solid #000")'); |
89 shouldBeTrue('CSS.supports("border", "inherit")'); | 92 shouldBeTrue('CSS.supports("border", "inherit")'); |
90 shouldBeFalse('CSS.supports("border", "1px solid inherit")'); | 93 shouldBeFalse('CSS.supports("border", "1px solid inherit")'); |
91 shouldBeFalse('CSS.supports("border", "inherit solid #000")'); | 94 shouldBeFalse('CSS.supports("border", "inherit solid #000")'); |
92 shouldBeTrue('CSS.supports("border-bottom", "thick green")'); | 95 shouldBeTrue('CSS.supports("border-bottom", "thick green")'); |
93 shouldBeTrue('CSS.supports("border-bottom", "inherit")'); | 96 shouldBeTrue('CSS.supports("border-bottom", "inherit")'); |
94 shouldBeFalse('CSS.supports("border-bottom", "thick green inherit")'); | 97 shouldBeFalse('CSS.supports("border-bottom", "thick green inherit")'); |
95 shouldBeFalse('CSS.supports("border-bottom", "inherit thick green")'); | 98 shouldBeFalse('CSS.supports("border-bottom", "inherit thick green")'); |
96 shouldBeTrue('CSS.supports("border-left", "thick green")'); | 99 shouldBeTrue('CSS.supports("border-left", "thick green")'); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 shouldBeTrue('CSS.supports("transform", "inherit")'); | 143 shouldBeTrue('CSS.supports("transform", "inherit")'); |
141 shouldBeFalse('CSS.supports("transform", "scaleX(2) inherit")'); | 144 shouldBeFalse('CSS.supports("transform", "scaleX(2) inherit")'); |
142 shouldBeFalse('CSS.supports("transform", "inherit scaleX(2)")'); | 145 shouldBeFalse('CSS.supports("transform", "inherit scaleX(2)")'); |
143 shouldBeTrue('CSS.supports("transition", "margin-left 4s")'); | 146 shouldBeTrue('CSS.supports("transition", "margin-left 4s")'); |
144 shouldBeTrue('CSS.supports("transition", "inherit")'); | 147 shouldBeTrue('CSS.supports("transition", "inherit")'); |
145 shouldBeFalse('CSS.supports("transition", "margin-left inherit")'); | 148 shouldBeFalse('CSS.supports("transition", "margin-left inherit")'); |
146 shouldBeFalse('CSS.supports("transition", "inherit 4s")'); | 149 shouldBeFalse('CSS.supports("transition", "inherit 4s")'); |
147 </script> | 150 </script> |
148 </body> | 151 </body> |
149 </html> | 152 </html> |
OLD | NEW |