[whatwg] Interaction of explicit and implicit sections (was: Re: Question on (new) header and hgroup)

On Fri, May 8, 2009 at 1:46 AM, Simon Pieters <simonp at opera.com> wrote:
> I guess the proper solution to that is to introduce
> :heading-level(n) that uses the outline algorithm. (But how to select and
> style subtitles in hgroup though?)

If you used a :heading-level() pseudoclass, you'd just do
":heading-level(x) h2" to style the h2 within an element of heading
level x.  (This would only target <h2>s withing <hgroup>s right now,
not <h2>s by themselves.)

~TJ

Received on Friday, 8 May 2009 07:42:13 UTC