W3C home > Mailing lists > Public > www-style@w3.org > July 2009

[css3-selectors] No way to select preceding sibling element

From: Paul <paul@scriptfusion.com>
Date: Mon, 13 Jul 2009 18:07:15 +0100
Message-ID: <4A5B69C3.8010606@scriptfusion.com>
To: www-style@w3.org
As the specification states for adjacent siblings:

E + F selects an F element immediately preceded by an E element.
However, there is no way to select an E immediately proceeded by an F 
element and apply styles to element E rather than F.

Similarly, for general siblings:
E ~ F selects an F element preceded by an E element.
Again, there is no way to select element an E element proceeded by an F 
element and apply styles to E rather than F.

I see this as a deficiency of the selector specification.

- Paul.
Received on Monday, 13 July 2009 22:27:43 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:19 GMT