CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 275 of 302 | |
Testing | Date | Revision |
Namespaced attribute selectors (ID #173a) | 2002-09-20 | 1.0 |
NOTE: The UA must support namespaces for this test.
tests, tests * { display: block; color: red; } testA[*|attribute] { color: green; } testB[*|attribute="pass"] { color: green; } testC[*|attribute~="pass"] { color: green; } testD[*|attribute^="pass"] { color: green; } testE[*|attribute*="pass"] { color: green; } testF[*|attribute$="pass"] { color: green; } testG[*|attribute|="pass"] { color: green; }
<tests xmlns="http://css.example.net/" xmlns:test="http://css.example.net/"> <testA test:attribute="pass">This should be green.</testA> <testB test:attribute="pass">This should be green.</testB> <testC test:attribute="pass">This should be green.</testC> <testD test:attribute="pass">This should be green.</testD> <testE test:attribute="pass">This should be green.</testE> <testF test:attribute="pass">This should be green.</testF> <testG test:attribute="pass">This should be green.</testG> </tests>