W3C home > Mailing lists > Public > www-style@w3.org > November 1997

Re: css2 - 6.4/5/6 Contextual selectors

From: Eric A. Meyer <eam3@po.cwru.edu>
Date: Wed, 26 Nov 1997 10:20:50 -0500
Message-Id: <v03102803b0a1ecb1fd54@[129.22.138.152]>
To: www-style@w3.org
>Would it not be easier to grok the syntax if the sequential selector were a
>single '/' for "following" and '//' for "immediately following"? E.g.:
>
>  H1 / P { ...       /* P following H1 */
>
>  H1 // P { ...      /* P immediately following H1 */
>
>  DIV ~ P { ...      /* P as any direct child of DIV
>
>  DIV ~/ P {...      /* P as first direct child of DIV */
>
>  DIV ~// P {...     /* P as immediately-following first child of DIV */


   I think David's on to something here.  These do seem to make more sense
than the current syntax, and are probably easier for humans to write.
Here's a question, though.  Assume that the above syntax is adopted.  Would
these be valid constructs and translations thereof?

   DIV /~ P {...   /* P as direct child of any element following DIV */

   DIV //~ P {...  /* P as direct child of any element immediately
                      following DIV */


...or have I pushed things too far again?

--
Eric A. Meyer  -  eam3@po.cwru.edu  -  http://www.cwru.edu/home/eam3.html
 Hypermedia Systems Manager
 Digital Media Services                http://www.cwru.edu/dms/dms.html
 Case Western Reserve University       http://www.cwru.edu/
Received on Wednesday, 26 November 1997 10:21:29 GMT

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