- From: Shira Gutgold <gutgold@yahoo.com>
- Date: Fri, 26 Jun 2009 10:58:12 +0300
- To: www-style@w3.org
Received on Monday, 29 June 2009 11:52:10 UTC
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?
SG
Received on Monday, 29 June 2009 11:52:10 UTC