Re: Question on rendering of replaced elements in tables

On Tue, 10 May 2005, Boris Zbarsky wrote:
>
> Ian Hickson wrote:
> > | Replaced elements with these 'display' values are treated as their
> > | given display types during layout. For example, an image that is set
> > | to 'display: table-cell' will fill the available cell space, and its
> > | dimensions might contribute towards the table sizing algorithms, as
> > | with an ordinary cell.
> 
> So what does that actually mean?  Does this mean that the intrinsic size 
> of the image is ignored when computing the used size?  If not, what 
> algorithm is used?

The table layout algorithm in general is undefined in CSS2.1. In general, 
the algorithm works on the principle of cells having intrinsic dimensions, 
and those dimensions then contribute in some way to the final table 
layout. For replaced element cells, the intrinsic dimentions come from the 
replaced element content.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 10 May 2005 20:53:16 UTC