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

Tab Atkins Jr. jackalmage at gmail.com
Fri May 8 07:42:13 PDT 2009


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


More information about the whatwg mailing list