blob: 9a19e01f486cf0136ea44f21173275ffd1693fd2 [file] [log] [blame]
<csstest def=":contains() pseudo-class" module="W3C Selectors" modulename="css3-modsel" number="84" rev="1.2" date="29-september-2005" xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.example.org/css3tests">
<author>Daniel Glazman</author>
<author>Ian Hickson</author>
<cssrules>div.stub *:contains("agree") { background-color : lime }
.red { background-color : red }</cssrules>
<code>
<div class="stub" xmlns="http://www.w3.org/1999/xhtml">
<p class="red">There is no disagreement over the fact that this paragraph should have a green background.</p>
<ul class="red">
<li>All the text in this list should have a</li><li>green background throughout as well.</li>
</ul>
</div>
</code>
</csstest>