Re: css2 - 6.4/5/6 Contextual selectors

>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 UTC