<!DOCTYPE html><html><head>
<title>Namespaced attribute selectors</title>
<style type="text/css">
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; }
</style>
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
<link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors">
<link rel="match" href="reference/seven-green-divs.xht">
<meta name="flags" content=" namespace">
</head>
<body>
<tests xmlns="http://css.example.net/" xmlns:test="http://css.example.net/">
<testa attribute="pass">This should be green.</testa>
<testb attribute="pass">This should be green.</testb>
<testc attribute="pass">This should be green.</testc>
<testd attribute="pass"></testd>
<teste attribute="pass">This should be green.</teste>
<testf attribute="pass">This should be green.</testf>
<testg attribute="pass">This should be green.</testg>
</tests>
</body></html>