W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2010

[whatwg] Should default styles for h1-h6 match the outlining algorithm?

From: L. David Baron <dbaron@dbaron.org>
Date: Thu, 29 Apr 2010 11:26:50 -0700
Message-ID: <20100429182650.GA23505@pickering.dbaron.org>
http://www.whatwg.org/specs/web-apps/current-work/multipage/sections.html#headings-and-sections
defines an outlining algorithm that gives each heading an outline
depth that doesn't necessarily match its h1-h6 number (at least as I
understand it, although I admit I haven't read the details).

There's been a bit of discussion at various times on www-style and
in other places about adding selectors that would allow CSS to match
on HTML's outline depth.

However, I was somewhat surprised to see that the rendering section
http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#fonts-and-colors
suggests default styles for h1-h6 that don't reflect the outline
depth at all.  Should it?

Is the design of the outline algorithm in HTML5 intended to result
in better default styles for headings?

Or is it expected that the default styles are generally wrong but
that CSS provides selectors that let authors easily improve them?
(Why?)

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Thursday, 29 April 2010 11:26:50 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:22 UTC