[whatwg] WA1 - The Section Header Problem

Christoph Päper christoph.paeper at tu-clausthal.de
Thu Nov 18 19:06:58 PST 2004


*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) {}



More information about the whatwg mailing list