css3-modsel-172a.xml (1343B)
1 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <head> 3 <title>Namespaced attribute selectors</title> 4 <style type="text/css"><![CDATA[ 5 tests, tests * { display: block; color: green; } 6 testA[|attribute] { color: red; } 7 testB[|attribute="fail"] { color: red; } 8 testC[|attribute~="fail"] { color: red; } 9 testD[|attribute^="fail"] { color: red; } 10 testE[|attribute*="fail"] { color: red; } 11 testF[|attribute$="fail"] { color: red; } 12 testG[|attribute|="fail"] { color: red; } 13 ]]></style> 14 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 15 <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> 16 <link rel="match" href="reference/seven-green-divs.xht"/> 17 <meta name="flags" content=" namespace" /> 18 </head> 19 <body> 20 <tests xmlns="http://css.example.net/" xmlns:test="http://css.example.net/"> 21 <testA test:attribute="fail">This should be green.</testA> 22 <testB test:attribute="fail">This should be green.</testB> 23 <testC test:attribute="fail">This should be green.</testC> 24 <testD test:attribute="fail">This should be green.</testD> 25 <testE test:attribute="fail">This should be green.</testE> 26 <testF test:attribute="fail">This should be green.</testF> 27 <testG test:attribute="fail">This should be green.</testG> 28 </tests> 29 </body> 30 </html>