The is a test page for negation pseudo-class selectors. If the lines below are grey, blue, red and green then this browser can be tested.
Not Supported
No Match - Correct
Match - Incorrect
Note: This test page is still incomplete and under review and testing.
p.test0:not([class])
p.test1:not([class="test1"])
p.test4:not([class="test4 x"]) <p class="test4 x">
p.test6-x:not([class="test6-x"]) <p class="test6-x">
p.test20:not([class~="test20"]) <p class="test20 x">
p.test22-x:not([class~="test22-x"]) <p class="test22-x y">
p.test30-x:not([class|="test30"]) <p class="test30-x">
p.test31-x:not([class|="test31-x"]) <p class="test31-x">
p.test33:not([class|="test33 x"]) <p class="test33 x-y">
p.test34:not([class|="test34 x-y"]) <p class="test34 x-y">
p.test35:not([class|="test35 x-y"]) <p class="test35 x-y-z">
p.test36-x-y:not([class|="test36-x"]) <p class="test36-x-y">
p.test39-[class|=""] <p class="test39-">
div.test41 [class|=""] <p class="foo">
| Selector | Gecko 1.7~1.9 | Opera 9.2 | Opera 9.5b | Safari 3.1b | IE 7~8b | iCab | Konqueror |
|---|---|---|---|---|---|---|---|
| 6.3.1. Attribute presence and values selectors | OK | B | OK | OK | OK | ? | ? |
| 6.6.7. The negation pseudo-class | OK | N | OK | OK | N | N | OK |
Supported: FF 2.0.0.8, Mozilla 1.7.13, Flock 1.0.1, Opera 9.24, Safari 3.0.4 (beta) and IE7
p.test50:not([class^="tes"])
p.test51:not([class^="test51"])
p.test60:not([class$="st60"])
p.test61:not([class$="test61"])
p.test70:not([class*="test70"])
p.test71:not([class*="test"])
p.test76-x:not([class*="-"]) <p class="test75-x">
p.test77:not([class*=" "]) <p class="test77 x-y-z">
p.test78:not([class*="-"]) <p class="test78 x-y-z">
| Selector | Gecko 1.7~1.9 | Opera 9.2 | Opera 9.5b | Safari 3.1b | IE 7~8b | iCab | Konqueror |
|---|---|---|---|---|---|---|---|
| 6.3.2. Substring matching attribute selectors | OK | N | OK | OK | OK | ? | ? |
| 6.6.7. The negation pseudo-class | OK | N | OK | OK | N | N | OK |