blob: ee0c48cc4b4ea2c3ccdd935840caebb4e18bbbc5 [file] [log] [blame]
<csstest def="Namespaced attribute selectors" module="W3C Selectors" modulename="css3-modsel" number="173a" rev="1.0" date="20-september-2002" xmlns="http://www.example.org/css3tests">
<author>Ian Hickson</author>
<cssrules>
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; }
</cssrules>
<code>
<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>
</code>
</csstest>