CSS 3 Module <== Test # ==>
W3C Selectors 270 of 296
Testing Date Revision
Namespaced attribute selectors (ID #173b) 2002-09-20 1.0

NOTE: The UA must support namespaces for this test.

This should be green. This should be green. This should be green. This should be green. This should be green. This should be green. This should be green.
 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 attribute="pass">This should be green.</testA>
   <testB attribute="pass">This should be green.</testB>
   <testC attribute="pass">This should be green.</testC>
   <testD attribute="pass">This should be green.</testD>
   <testE attribute="pass">This should be green.</testE>
   <testF attribute="pass">This should be green.</testF>
   <testG attribute="pass">This should be green.</testG>
  </tests>