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