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

:parent and previous siblings selectors

From: Shira Gutgold <gutgold@yahoo.com>
Date: Fri, 26 Jun 2009 10:58:12 +0300
Message-ID: <fd81a9040906260058l278efc2dide1e362b095c6e95@mail.gmail.com>
To: www-style@w3.org
Hello all,

I've been trying to ascertain whether the :parent selector and previous
siblings selector will be included in CSS3. Reading the mailing list
correspondence, I got the impression that the :parent selector will be
implemented but that the implementation of a previous siblings selector
would be too costly and therefore probably abandoned.
So first of all, could someone please confirm whether my impression is
indeed correct?

Assuming the :parent selector will be implemented, I suppose a possible
workaround for targeting previous siblings would be
to style all the children of that parent like so:
a.classname :parent a{

and then remove the style for the following selectors like so:
a.classname ~ a{

Would that work?

Received on Monday, 29 June 2009 11:52:10 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:27 UTC