2.1.157 [HTML5] Section 10.3.7 Sections and headings

V0338: No nesting rules for sections and headings are defined

The specification states:

 10.3.7 Sections and headings
     ...
     The article, aside, nav, and section elements are expected to affect the margins and 
     font size of h1 elements, as well as h2–h5 elements that follow h1 elements in hgroup 
     elements, based on the nesting depth. If x is a selector that matches elements that 
     are either article, aside, nav, or section elements, then the following rules capture 
     what is expected:
  
     @namespace url(http://www.w3.org/1999/xhtml);
  
     x h1 { margin-top: 0.83em; margin-bottom: 0.83em; font-size: 1.50em; }
     x x h1 { margin-top: 1.00em; margin-bottom: 1.00em; font-size: 1.17em; }
     x x x h1 { margin-top: 1.33em; margin-bottom: 1.33em; font-size: 1.00em; }
     x x x x h1 { margin-top: 1.67em; margin-bottom: 1.67em; font-size: 0.83em; }
     x x x x x h1 { margin-top: 2.33em; margin-bottom: 2.33em; font-size: 0.67em; }
  
     x hgroup > h1 ~ h2 { margin-top: 1.00em; margin-bottom: 1.00em; font-size: 1.17em; }
     x x hgroup > h1 ~ h2 { margin-top: 1.33em; margin-bottom: 1.33em; font-size: 1.00em; }
     x x x hgroup > h1 ~ h2 { margin-top: 1.67em; margin-bottom: 1.67em; font-size: 
     0.83em; }
     x x x x hgroup > h1 ~ h2 { margin-top: 2.33em; margin-bottom: 2.33em; font-size: 
     0.67em; }
  
     x hgroup > h1 ~ h3 { margin-top: 1.33em; margin-bottom: 1.33em; font-size: 1.00em; }
     x x hgroup > h1 ~ h3 { margin-top: 1.67em; margin-bottom: 1.67em; font-size: 0.83em; }
     x x x hgroup > h1 ~ h3 { margin-top: 2.33em; margin-bottom: 2.33em; font-size: 
     0.67em; }
  
     x hgroup > h1 ~ h4 { margin-top: 1.67em; margin-bottom: 1.67em; font-size: 0.83em; }
     x x hgroup > h1 ~ h4 { margin-top: 2.33em; margin-bottom: 2.33em; font-size: 0.67em; }
  
     x hgroup > h1 ~ h5 { margin-top: 2.33em; margin-bottom: 2.33em; font-size: 0.67em; }

All document modes (All versions)

Nesting rules for sections and headings are not defined.

Show: