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

Re: Select a parrent node with s CSS selector?

From: David Woolley <forums@david-woolley.me.uk>
Date: Tue, 24 Apr 2007 07:54:22 +0100
Message-ID: <462DA99E.6040800@david-woolley.me.uk>
To: www-style@w3.org

Yahia wrote:

> I agree. I think it should be put in consideration, since without it, we 
> are forced to add extra <div/>s* plus one or two CSS selectors to 
> accomplish a desired effect.

I'm not sure if they are still in the draft standard, but many misuses 
of DIV for styling can be handled by CSS generated virtual blocks.

> 
> * the advantages of CSS being to make styling possible without 
> additional bloat and unsemantic markup.

CSS style sheets have a couple of added design constraints:

- they must be fast to render and to re-render when the document is
   manipulated by scripting;
- features that involve delaying rendering or re-rendering
   earlier content when new content arrives are discouraged,
   although there are an increasing number of violations of
   this particular principle.  (I.e. documents should be
   incrementally renderable without fixups, as far as possible.)

They must achieve these even when used by non-technical authors using 
high performance machines.

I think it may also be possible to construct parent selector scenarious 
where the effect of applying the parent selector rules is to invalidate 
the selector match.
Received on Tuesday, 24 April 2007 07:18:58 GMT

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