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