css3-modsel-173a.xml (1362B)
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: red; } 6 testA[*|attribute] { color: green; } 7 testB[*|attribute="pass"] { color: green; } 8 testC[*|attribute~="pass"] { color: green; } 9 testD[*|attribute^="pass"] { color: green; } 10 testE[*|attribute*="pass"] { color: green; } 11 testF[*|attribute$="pass"] { color: green; } 12 testG[*|attribute|="pass"] { color: green; } 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="pass">This should be green.</testA> 22 <testB test:attribute="pass">This should be green.</testB> 23 <testC test:attribute="pass">This should be green.</testC> 24 <testD test:attribute="pass">This should be green.</testD> 25 <testE test:attribute="pass">This should be green.</testE> 26 <testF test:attribute="pass">This should be green.</testF> 27 <testG test:attribute="pass">This should be green.</testG> 28 </tests> 29 </body> 30 </html>