1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <title>Namespaced attribute selectors</title>
4 <style type="text/css"><![CDATA[
5 @namespace url(http://css.example.net/);
6 tests, tests * { display: block; color: green; }
7 testA[|attribute] { color: red; }
8 testB[|attribute="fail"] { color: red; }
9 testC[|attribute~="fail"] { color: red; }
10 testD[|attribute^="fail"] { color: red; }
11 testE[|attribute*="fail"] { color: red; }
12 testF[|attribute$="fail"] { color: red; }
13 testG[|attribute|="fail"] { color: red; }
15 <link rel="first" href="css3-modsel-1.xml" title="Groups of selectors"/>
16 <link rel="prev" href="css3-modsel-172a.xml" title="Namespaced attribute selectors"/>
17 <link rel="next" href="css3-modsel-173a.xml" title="Namespaced attribute selectors"/>
18 <link rel="last" href="css3-modsel-d4.xml" title="Dynamic updating of :first-child and :last-child"/>
19 <link rel="up" href="./index.html"/>
20 <link rel="top" href="../../index.html"/>
23 <tests xmlns="http://css.example.net/" xmlns:test="http://css.example.net/">
24 <testA test:attribute="fail">This should be green.</testA>
25 <testB test:attribute="fail">This should be green.</testB>
26 <testC test:attribute="fail">This should be green.</testC>
27 <testD test:attribute="fail">This should be green.</testD>
28 <testE test:attribute="fail">This should be green.</testE>
29 <testF test:attribute="fail">This should be green.</testF>
30 <testG test:attribute="fail">This should be green.</testG>