blob: 060f4e0872e3e533a9c846be53c67758cabce45e [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>