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

[css3-selectors] "recursive" selectors

From: Andy <aholmes84@shaw.ca>
Date: Mon, 28 Apr 2003 13:43:24 -0700
To: www-style@w3.org
Message-id: <3EAD926C.7080101@shaw.ca>

Was just playing around with some ideas, and was wondering if/why can't 
CSS3 selectors select based on CSS properties? A useful example of what 
I'm talking about might be something like:

    *:style(display: block) { margin: auto; }

I suppose you could do something like:

    *[style*="display: block"] { margin: auto; }

But that's obviously not as robust as the previous example/proposal.

As far as I know there isn't any better way of achieving something like 
this (centering all block-level elements), but should be in my opinion.

- Andy
Received on Monday, 28 April 2003 16:43:35 UTC

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