W3C home > Mailing lists > Public > www-style@w3.org > April 2008

Re: Suggestion for CSS3 selectors (fwd)

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 29 Apr 2008 09:29:00 -0700
Message-ID: <48174CCC.6010109@inkedblade.net>
To: "Brian J. Fink" <desertowl23@gmail.com>
CC: www-style@w3.org

Brian J. Fink wrote:
> I mean, just like the contextual selector is:
> selector1 selector2
> the indirect ancestor selector2 of selector1 could be notated as:
> selector2 ^ selector1
> and like the direct descendant is notated by:
> selector1 > selector2
> so the direct ancestor could be:
> selector1 < selector2

Yes, I know what you meant. :) What I'm saying is that instead of

   selector1 ^ selector2
   selector1 < selector2

you'd have (for example)

   (selector1) selector2
   (selector1) > selector2

It uses the same syntax as before, we just add some kind of syntax
for marking which element is being matched, i.e. it no longer has
to be the rightmost element. There are other approaches, but I
think this is the most straightforward one.

Received on Tuesday, 29 April 2008 16:29:42 UTC

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