css3-modsel-174a.xml (817B)
1 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <head> 3 <title>Attribute selectors with multiple attributes</title> 4 <style type="text/css"><![CDATA[ 5 tests, tests * { display: block; color: red; } 6 testA[*|attribute="pass"] { color: green; } 7 testB[*|attribute="pass"] { color: green; } 8 ]]></style> 9 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 10 <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> 11 <meta name="flags" content=" namespace" /> 12 </head> 13 <body> 14 <tests xmlns="http://css.example.net/" xmlns:test="http://css.example.net/"> 15 <testA attribute="pass" test:attribute="fail">This should be green.</testA> 16 <testB attribute="fail" test:attribute="pass">This should be green.</testB> 17 </tests> 18 </body> 19 </html>