W3C home > Mailing lists > Public > www-style@w3.org > October 2006

Re: [css3-selectors] :parent selector

From: Jo-W <jowie.1337@gmail.com>
Date: Sun, 1 Oct 2006 21:53:23 +0200
Message-ID: <ada3dbf70610011253n745fc501lc06725c3cde61ac2@mail.gmail.com>
To: www-style@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:47 GMT