Mozilla supports indirect adjacent sibling combinator

January 20, 2004

It looks like Mozilla now supports the indirect adjacent sibling combinator.

An example of this selector would be h1 ~ pre:
h1 ~ pre would select the <pre> element in the following example.

<p>some text</p>
<p>some text <code>some code</code></p>
<pre>some preformatted text</pre>

Posted by Andrew at January 20, 2004 06:09 AM