W3C home > Mailing lists > Public > www-style@w3.org > February 2008

Re: [CSS21] visibility: collapse on non-table elements

From: fantasai <fantasai.lists@inkedblade.net>
Date: Thu, 14 Feb 2008 02:13:12 -0800
Message-ID: <47B41438.5070000@inkedblade.net>
To: www-style@w3.org

fantasai wrote:
> 
> Specifically, block-level elements with "visibility: collapse" should 
> behave as if their box was zero height with zero vertical padding, border
> width, and margins, and inline-level elements with "visibility: collapse"
> should behave as if their box was zero width with zero horizontal padding,
> border width, and margins.

> Furthermore all descendants of a non-internal-table-element with "visibility:
> collapse"--including descendants that are anonymous boxes--are also treated
> as if they had "visibility: collapse".

This sentence is wrong because it would collapse inline descendants of a collapsed
block horizontally. It should be two sentences:

Furthermore all content of the collapsed block-level element is removed from
display, but still affects calculation of the collapsed element's width.

Furthermore all content of the collapsed inline-level element is removed from
display, but still affects calculation of the element's height and baseline
position.

~fantasai
Received on Thursday, 14 February 2008 10:13:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:01 GMT