[whatwg] WA1 - The Section Header Problem

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

Received on Thursday, 18 November 2004 19:06:58 UTC