mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
23 lines
1.2 KiB
XML
23 lines
1.2 KiB
XML
<csstest def="Substring matching attribute value selector on end with declared namespace"
|
|
module="W3C Selectors" modulename="css3-modsel" number="102" rev="1.1" date="13-november-2001"
|
|
xmlns="http://www.example.org/css3tests">
|
|
|
|
<author>Daniel Glazman</author>
|
|
<author>Ian Hickson</author>
|
|
|
|
<cssrules>@namespace a url(http://www.example.org/a);
|
|
@namespace b url(http://www.example.org/b);
|
|
@namespace html url(http://www.w3.org/1999/xhtml);
|
|
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
|
|
*|p, *|r { background-color : red }
|
|
*|*[a|title$="tait"], p[|title$="tait"] { background-color : lime }
|
|
*|*[|title$="tait"], *|*[html|title$="tait"] { background-color : red }
|
|
</cssrules>
|
|
|
|
<code>
|
|
<p title="si on chantait" xmlns="http://www.w3.org/1999/xhtml">This paragraph should have a green background.</p>
|
|
<q xmlns:a="http://www.example.org/a" a:title="si nous chantions" xmlns="http://www.example.org/a">This paragraph should be unstyled.</q>
|
|
<r a:title="si on chantait" xmlns="http://www.example.org/a" xmlns:a="http://www.example.org/a">This paragraph should have a green background.</r>
|
|
<s b:title="si on chantait" xmlns="http://www.example.org/b" xmlns:b="http://www.example.org/b">This paragraph should be unstyled.</s>
|
|
</code>
|
|
</csstest>
|