Re: overflow:scroll and tables

On Wednesday 2006-03-08 15:26 -0500, Adam Kuehn wrote:
> Andrew Fedoniouk wrote:
> >"One technical reason is that the overflow property does not apply to
> >tables." - why? What is this reason?
> 
> I'm no expert, but I believe this is just for backward compatibility 
> with legacy table behavior.  You can check the "automatic" table 
> layout algorithm in the spec.  I'm pretty sure that this layout 
> algorithm is incompatible with the overflow property (or, more 
> accurately, the layout algorithm will never result in the need for 
> any value of overflow except 'visible').

The algorithm in the spec isn't well defined enough to answer that, but
in Mozilla that's not true.  Try, for example:

<table border><tr><td>
  <div style="width:100px"><div style="width:200px;border:medium solid
  blue;">Hi</div></div>
</td></tr></table>

-David

-- 
L. David Baron                                <URL: http://dbaron.org/ >
           Technical Lead, Layout & CSS, Mozilla Corporation

Received on Wednesday, 8 March 2006 20:36:25 UTC