mirror of
https://github.com/servo/servo.git
synced 2025-10-17 08:49:21 +01:00
28 lines
1.1 KiB
XML
28 lines
1.1 KiB
XML
<csstest def="Namespaced attribute selectors" module="W3C Selectors" modulename="css3-modsel" number="173a" rev="1.0" date="20-september-2002" xmlns="http://www.example.org/css3tests">
|
|
|
|
<author>Ian Hickson</author>
|
|
|
|
<cssrules>
|
|
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; }
|
|
</cssrules>
|
|
|
|
<code>
|
|
<tests xmlns="http://css.example.net/" xmlns:test="http://css.example.net/">
|
|
<testA test:attribute="pass">This should be green.</testA>
|
|
<testB test:attribute="pass">This should be green.</testB>
|
|
<testC test:attribute="pass">This should be green.</testC>
|
|
<testD test:attribute="pass">This should be green.</testD>
|
|
<testE test:attribute="pass">This should be green.</testE>
|
|
<testF test:attribute="pass">This should be green.</testF>
|
|
<testG test:attribute="pass">This should be green.</testG>
|
|
</tests>
|
|
</code>
|
|
|
|
</csstest>
|