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

Re: [CSS 3] Feature Request: Negotiation selector

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 20 Nov 2006 18:54:44 +0000 (UTC)
To: Matthew Raymond <mattraymond@earthlink.net>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, daniel.glazman@disruptive-innovations.com, Marco von Frieling <teuchlfex@gmx.at>, www-style Mailing List <www-style@w3.org>
Message-ID: <Pine.LNX.4.62.0611201853530.14596@dhalsim.dreamhost.com>

On Sun, 19 Nov 2006, Matthew Raymond wrote:
> 
> For ".login h1" and "h1:not(login h1)", one would think the following 
> would work:
> 
> | h1 { /* Common styling. */ }
> | .login h1 { /* Login styling. */ }
> | :not(.login) > h1 { /* Styling for non-Login level 1 headers. */ }
> | :not(.login) > * > h1 { /* Styling for non-Login level 1 headers. */ }
> | :not(.login) > * > * > h1 { /* ... */ }
> | :not(.login) > * > * > * > h1 { /* ... */ }
> | :not(.login) > * > * > * > * > h1 { /* ... */ }
> | :not(.login) > * > * > * > * > * > h1 { /* ... */ }
> | :not(.login) > * > * > * > * > * > * > h1 { /* ... */ }
> | :not(.login) > * > * > * > * > * > * > * > h1 { /* ... */ }
> | :not(.login) > * > * > * > * > * > * > * > * > h1 { /* ... */ }
> | :not(.login) > * > * > * > * > * > * > * > * > * > h1 { /* ... */ }
> | [... On into infinity ...]

Or you could just use CSS1:

   h1 { /* styling specific to non-login level 1 headers */ }
   .login h1 { /* login styling */ }

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 20 November 2006 18:55:02 GMT

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