W3C home > Mailing lists > Public > public-html@w3.org > March 2010

Re: restrictions on blocks inside inlines (was Re: HTML5 Authoring Conformance Study)

From: Maciej Stachowiak <mjs@apple.com>
Date: Sun, 21 Mar 2010 20:39:44 -0700
Cc: "L. David Baron" <dbaron@dbaron.org>, HTMLwg WG <public-html@w3.org>
Message-id: <BB655856-F7C5-458B-B507-98A21EADB8BA@apple.com>
To: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>

On Mar 21, 2010, at 5:27 PM, Leif Halvard Silli wrote:

>
> I did not say that <hn> was inline. Don't spread that rumour. ;-)
>
> But when you say that <caption> is not an inline, then what do you  
> base
> that on? CSS?

The CSS display type of the <caption> element is "table-caption", not  
"inline". According to CSS 2.1, "Caption boxes are block-level boxes  
that retain their own content, padding, margin, and border areas, and  
are rendered as normal blocks inside the anonymous box." <http://www.w3.org/TR/CSS2/tables.html#model 
 >. So from a formatting perspective it acts like a block.

> According to HTML4 - and thus also according to XHTML1,
> it is an inline.

I was unable to find where HTML4 says the caption element is an inline- 
level element (it does say that it may only have inline children -  
which is a separate issue).

Regards,
Maciej
Received on Monday, 22 March 2010 03:40:18 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:59 UTC