Patrick H. Lauke wrote:
On 19/08/2010 10:13, David Storey wrote:
So the section or article elements could be taken out of context and
displayed elsewhere but retain their <h1> headings.
You could, but I still use the h1 to h2 inside the sections because no
browser uses the sectioning algorithm for thing like styling.
I think Firefox 4.0 will, this will also be the first version of Firefox
to have the HTML5 parser enabled by default. Styling is especially fun
because it's not just sections you have to worry about, several other
elements also create a new sectioning context. Life will be made easier
by the new any() selector:
/* Level 0 */
h1 {
font-size: 30px;
}
/* Level 1 */
:-moz-any(section, article, aside, nav) h1 {
font-size: 25px;
}
/* Level 2 */
:-moz-any(section, article, aside, nav)
:-moz-any(section, article, aside, nav) h1 {
font-size: 20px;
}
/* Level 3 */
:-moz-any(section, article, aside, nav)
:-moz-any(section, article, aside, nav)
:-moz-any(section, article, aside, nav) h1 {
font-size: 15px;
}
https://developer.mozilla.org/en/CSS/:-moz-any
Also worth pointing out that, to my knowledge, no AT/screen reader
currently supports it either, so this may cause some issues for these
users at present.
Similarly the native semantics of elements like header and nav don't yet
have any impact on screen readers which support the similar ARIA roles
(unless NVDA added support?) so you should add them even when there's
duplication:
http://www.w3.org/TR/html5/content-models.html#annotations-for-assistive-technology-products-aria
Rob
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************