W3C home > Mailing lists > Public > www-style@w3.org > May 2005

Re: Question on rendering of replaced elements in tables

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 10 May 2005 20:53:06 +0000 (UTC)
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style@w3.org
Message-ID: <Pine.LNX.4.61.0505102039270.20097@dhalsim.dreamhost.com>

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 GMT

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