W3C home > Mailing lists > Public > www-html@w3.org > August 2006

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

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Wed, 09 Aug 2006 14:38:03 +0200
Message-ID: <44D9D72B.5010202@disruptive-innovations.com>
To: XHTML-Liste <www-html@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:07 GMT