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

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 UTC