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