Re: [css3-selectors] :parent selector

What about taking an entirely different approach:

when writing:
  div p span { ... }

the css code will be applied to the last element in the selector, <span>.


I propose a "applies-to" selector:

writing:
  div |p| span { ... }

would apply the css code on the <p> element instead of the <span> element.


This should not have the same inefficiency (and less confusion when a
human reads the selector).

Received on Sunday, 1 October 2006 20:08:40 UTC