1 Test window.CSS.supports()
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS CSS.supports("(display: none)") is true
7 PASS CSS.supports("(display: deadbeef)") is false
8 PASS CSS.supports("not (display: deadbeef)") is true
9 PASS CSS.supports("not (display: none)") is false
10 PASS CSS.supports("not (not (display: none))") is true
11 PASS CSS.supports("not (not (not (display: none)))") is false
12 PASS CSS.supports("(display: none) and (display: block)") is true
13 PASS CSS.supports("(display: none) and (display: block) and (display: inline)") is true
14 PASS CSS.supports("(display: none) and (display: block) and (display: deadbeef) and (display: inline)") is false
15 PASS CSS.supports("(display: none) or (display: inline)") is true
16 PASS CSS.supports("(display: none) or (display: block) or (display: inline)") is true
17 PASS CSS.supports("(display: none) or (display: deadbeef) or (display: inline)") is true
18 PASS CSS.supports("(display: ohhai) or (display: deadbeef) or (display: rainbows)") is false
19 PASS CSS.supports("(display: none) and (display: block) or (display: inline)") is false
20 PASS CSS.supports("not (display: deadbeef) and (display: block)") is false
21 PASS CSS.supports("(not (border: 1px 1px 1px 1px 1px solid #000)) and (display: block)") is true
22 PASS CSS.supports("(display: block !important) and ((display: inline) or (display: deadbeef))") is true
23 PASS CSS.supports("not ((not (display: block)) or ((display: none) and (deadbeef: 1px)))") is true
24 PASS CSS.supports("not( display: deadbeef)") is false
25 PASS CSS.supports("(display: none)and ( -webkit-transition: all 1s )") is false
26 PASS CSS.supports("(display: none)or(-webkit-transition: all 1s)") is false
27 PASS CSS.supports("(display: none) or(-webkit-transition: all 1s )") is false
28 PASS CSS.supports("(((((((display: none)))))))") is true
29 PASS CSS.supports("(!important)") is false
30 PASS CSS.supports("not not not not (display: none)") is false
31 PASS CSS.supports("(top: -webkit-calc(80% - 20px))") is true
32 PASS CSS.supports("(background-color: rgb(0, 128, 0))") is true
33 PASS CSS.supports("(background: url('/blah'))") is true
34 PASS CSS.supports("((top: -webkit-calc(80% - 20px)) and (not (background-color: rgb(0, 128, 0)))) or (background: url('/blah'))") is true
35 PASS CSS.supports("(background: invalid('/blah'))") is false
36 PASS CSS.supports("top", "20%") is true
37 PASS CSS.supports("top", " 20px ") is true
38 PASS CSS.supports("top", "20") is false
39 PASS CSS.supports("dis\nplay", "none") is false
40 PASS CSS.supports("display", "rainbow") is false
41 PASS CSS.supports("display", "url(rainbow.png)") is false
42 PASS CSS.supports(" background ", "url(rainbow.png)") is false
43 PASS CSS.supports("background", "invalid(rainbow.png)") is false
44 PASS CSS.supports("background-color", "#000") is true
45 PASS CSS.supports("background-color", "rgba(0,0,0,0)") is true
46 PASS CSS.supports("background-color", "inherit") is true
47 PASS CSS.supports("font-family", "'\n'") is false
48 PASS CSS.supports("display", "none !important") is false
49 PASS CSS.supports("display", "none!important") is false
50 PASS CSS.supports("display", "!important none") is false
51 PASS CSS.supports("display", "none !important ! important ") is false
52 PASS CSS.supports("display", "none ! important") is false
53 PASS CSS.supports("display", "none ! important") is false
54 PASS CSS.supports("display", "none ! \nimportant") is false
55 PASS CSS.supports("", "") is false
56 PASS CSS.supports(true, "") is false
57 PASS CSS.supports([], "none") is false
58 PASS CSS.supports("display", "") is false
59 PASS CSS.supports("display:", "none") is false
60 PASS CSS.supports("z-index", 1) is true
61 PASS CSS.supports("content", []) is false
62 PASS CSS.supports("content", "!important") is false
63 PASS CSS.supports("(display: none)", undefined) is false
64 PASS CSS.supports("margin", "1__qem") is false
65 PASS CSS.supports("border", "1px solid #000") is true
66 PASS CSS.supports("border", "inherit") is true
67 PASS CSS.supports("border", "1px solid inherit") is false
68 PASS CSS.supports("border", "inherit solid #000") is false
69 PASS CSS.supports("border-bottom", "thick green") is true
70 PASS CSS.supports("border-bottom", "inherit") is true
71 PASS CSS.supports("border-bottom", "thick green inherit") is false
72 PASS CSS.supports("border-bottom", "inherit thick green") is false
73 PASS CSS.supports("border-left", "thick green") is true
74 PASS CSS.supports("border-left", "inherit") is true
75 PASS CSS.supports("border-left", "thick green inherit") is false
76 PASS CSS.supports("border-left", "inherit thick green") is false
77 PASS CSS.supports("border-right", "thick green") is true
78 PASS CSS.supports("border-right", "inherit") is true
79 PASS CSS.supports("border-right", "thick green inherit") is false
80 PASS CSS.supports("border-right", "inherit thick green") is false
81 PASS CSS.supports("border-top", "thick green") is true
82 PASS CSS.supports("border-top", "inherit") is true
83 PASS CSS.supports("border-top", "thick green inherit") is false
84 PASS CSS.supports("border-top", "inherit thick green") is false
85 PASS CSS.supports("border-radius", "1px 0 3px 4px") is true
86 PASS CSS.supports("border-radius", "inherit") is true
87 PASS CSS.supports("border-radius", "1px 0 3px inherit") is false
88 PASS CSS.supports("border-radius", "inherit 0 3px 4px") is false
89 PASS CSS.supports("border-spacing", "5px 5px") is true
90 PASS CSS.supports("border-spacing", "inherit") is true
91 PASS CSS.supports("border-spacing", "5px inherit") is false
92 PASS CSS.supports("border-spacing", "inherit 5px") is false
93 PASS CSS.supports("font", "italic small-caps bolder 16px/3 cursive") is true
94 PASS CSS.supports("font", "inherit") is true
95 PASS CSS.supports("font", "italic small-caps bolder 16px/3 inherit") is false
96 PASS CSS.supports("font", "inherit small-caps bolder 16px/3 cursive") is false
97 PASS CSS.supports("list-style", "georgian inside") is true
98 PASS CSS.supports("list-style", "inherit") is true
99 PASS CSS.supports("list-style", "georgian inherit") is false
100 PASS CSS.supports("list-style", "inherit inside") is false
101 PASS CSS.supports("margin", "5px") is true
102 PASS CSS.supports("margin", "inherit") is true
103 PASS CSS.supports("margin", "inherit 5px") is false
104 PASS CSS.supports("margin", "5px inherit") is false
105 PASS CSS.supports("margin", "inherit 5px 5px") is false
106 PASS CSS.supports("margin", "inherit 5px 5px 5px") is false
107 PASS CSS.supports("outline", "1px solid #000") is true
108 PASS CSS.supports("outline", "inherit") is true
109 PASS CSS.supports("outline", "1px solid inherit") is false
110 PASS CSS.supports("outline", "inherit solid #000") is false
111 PASS CSS.supports("overflow", "scroll") is true
112 PASS CSS.supports("overflow", "inherit") is true
113 PASS CSS.supports("overflow", "inherit scroll") is false
114 PASS CSS.supports("overflow", "scroll inherit") is false
115 PASS CSS.supports("transform", "scaleX(2)") is true
116 PASS CSS.supports("transform", "inherit") is true
117 PASS CSS.supports("transform", "scaleX(2) inherit") is false
118 PASS CSS.supports("transform", "inherit scaleX(2)") is false
119 PASS CSS.supports("transition", "margin-left 4s") is true
120 PASS CSS.supports("transition", "inherit") is true
121 PASS CSS.supports("transition", "margin-left inherit") is false
122 PASS CSS.supports("transition", "inherit 4s") is false
123 PASS successfullyParsed is true