W3C home > Mailing lists > Public > www-style@w3.org > April 2011

Re: [css3] [css21] browser specific CSS

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 20 Apr 2011 22:15:51 -0400
Message-ID: <4DAF9357.6060606@mit.edu>
To: www-style@w3.org
On 4/20/11 5:23 PM, Glenn Linderman wrote:
> Yes, that would be a smaller container width... but the data would have
> the same space

At least in Gecko's case that's not true.  For overflow:auto the way 
things work is that you lay out at the container width, and then if the 
height is too big you add the vertical scrollbar and lay out at (width 
of container - width of scrollbar).

So the table actually has different amounts of available space depending 
on whether the container's width calculation assumes there will or won't 
be a scrollbar.

> What solution is used when this case arises?  The "obvious easy"
> solution would be to leave room for the scrollbars, but don't display
> them if they aren't actually needed...

This is pretty easy to do, and looks like crap.  Which is why browsers 
don't do that for overflow:auto....

Received on Thursday, 21 April 2011 02:16:20 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:45 UTC