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

RE: Selector Readabiliitiy [sic]

From: Andrew n marshall <amarshal@usc.edu>
Date: Thu, 4 Dec 1997 17:11:55 -0800
Message-ID: <01BD00FE.A7C5E760.amarshal@usc.edu>
To: "'Douglas Rand'" <drand@pobox.engr.sgi.com>
Cc: "'www-style@w3.org'" <www-style@w3.org>
On Thursday, December 04, 1997 1:53 PM, Douglas Rand 
[SMTP:drand@pobox.engr.sgi.com] wrote:
> >DIV.Chapter P:first-child
>
> > Would mean the first paragraph of a chapter as denoted by a DIV block.
>
> I can't see this as being a good thing.  You need to at least specify
> what the P is a child of.  Maybe P:first-child(DIV.Chapter).  You need
> to do this because there isn't a direct relationship between any pair
> of tags in the selector,  and I think introducing one based on a 
pseudoclass
> is a mistake.  Kind of a mixed metaphor.

Ops .  I forgot to specify 'immediate'.  The correct version of in syntax 
would be:

DIV.Chapter ~P:first-child

However, I do not see a need to explicitly specify the parent.  The concept 
of 'child' implies it is of it's parent, whatever that may be in the 
document tree.  And 'first' is implicitly relative to the other child or 
that parent, therefore the element's siblings.

Andrew n marshall
  student - artist - programmer
    http://www.media-electronica.com/anm-bin/anm
      "Everyone a mentor,  Everyone a pupil"
Received on Friday, 5 December 1997 00:46:04 GMT

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