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

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 UTC