[whatwg] WA1 - The Section Header Problem

Ian Hickson ian at hixie.ch
Wed Feb 20 13:37:01 PST 2008


On Fri, 19 Nov 2004, Christoph Päper wrote:
> *Henri Sivonen* <hsivonen at iki.fi>:
> > On Nov 18, 2004, at 21:48, Matthew Raymond wrote:
> > 
> > > |   h2, section[level=2] h { /* H2 styling */ }
> > 
> > Isn't the whole point of nested <section>s that you don't need a level
> > attribute (...)
> 
> That's what I thought. A level shortcut in CSS selectors (a pseudo-class)
> could be nice, though, such that you don't have to write
> 
>   section section section section section {}
> 
> but just something like
> 
>   section:nested-self(4) {}
> 
> or
> 
>   section:min-nested-self(4) {}

This may be something to propose to the CSS working group.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list