Comment on last XHTML2 draft, content model and default styles of 'section'

I have two comments about the content model of the 'section'
element in section 8 and the related default styles in appendix H.

comment 1: a 'section' element, contained in the 'body' element of a
    document instance can contain a 'blockquote' itself containing
    another 'section' element containting itself an 'h'. That
    header will get the following default styles from appendix H:

      section section h, h3 {
        font-size: 1.17em;
        margin: 1em 0;
      }

    But since the inner 'section' element is inside a blockquote, it's
    "rendering" context is different from the current context of the
    document. In other words, we may very well be quoting a level 4
    section inside our top level 1 section. Then the CSS rules above
    are bad since they will always show the quoted section as a level 2
    section...

comment 2: because of comment 1, and because 'div' 'blockcode' and
    'blockquote' establish some sort of border in terms of rendering
    context, the selector of the rule above should probably use
    child combinators instead of descendant combinators. Please
    note I already made the same comment for performance reasons about
    an old draft of XHTML2. The performance reasons still stands,
    resolving child combinators being FAR LESS expensive than
    resolving descendant combinators...

</Daniel>

Received on Wednesday, 9 August 2006 12:38:10 UTC