W3C home > Mailing lists > Public > www-style@w3.org > December 2007

RE: 'border-spacing', 'caption-side', 'border-collapse' inheritance

From: Alex Mogilevsky <alexmog@exchange.microsoft.com>
Date: Mon, 17 Dec 2007 14:00:12 -0800
To: "L. David Baron" <dbaron@dbaron.org>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <04F36FB4ED0F85459AA447F72711526F01206D87F3FF@DF-GRTDANE-MSG.exchange.corp.microsoft.com>

Thanks for explanation. It makes sense now. (I am not sure inheriting the properties makes sense but it is clear that the implementations actually do that, there is no contradiction).

-----Original Message-----
From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf Of L. David Baron
Sent: Monday, December 17, 2007 11:06 AM
To: www-style@w3.org
Subject: Re: 'border-spacing', 'caption-side', 'border-collapse' inheritance


On Monday 2007-12-17 10:30 -0800, Alex Mogilevsky wrote:
> CSS 2.1 says 'border-spacing', 'caption-side', 'border-collapse'
> inherit [1]. No current implementation that we've checked do that
> though, nor does it seem to make sense. Should the property definition
> be changed to "inherited:no", or do we overlook some other text that
> prevents inheritance into nested tables?

In Mozilla they're inherited, but our default style sheet for HTML
specifies that the HTML table element has border-spacing:2px and
border-collapse:separate.  (In CSS2.0 the latter was not the default
value, so the rule was necessary, and we've left it since it's
compatible with what other browsers do.)

They should inherit fine for non-HTML-table elements with the table
display types, or if you give table explicit inherit values.

Not sure what you're seeing with caption-side, though.

(I'd suggest testing different variation of removing lines in
http://dbaron.org/css/test/2007/table-inheritance .)

-David

--
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Monday, 17 December 2007 22:00:45 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:24 UTC