W3C home > Mailing lists > Public > www-style@w3.org > January 2008

Re: proposed change for scrollbars in size calculations

From: Brad Kemper <brkemper@comcast.net>
Date: Tue, 8 Jan 2008 07:23:32 -0800
Message-Id: <2A801A77-4325-4C3A-A39F-89CC6EC41DDD@comcast.net>
Cc: Andrew Fedoniouk <news@terrainformatica.com>, fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>, Rossen Atanassov <ratan@windows.microsoft.com>, Harel Williams <harelw@microsoft.com>
To: Alex Mogilevsky <alexmog@exchange.microsoft.com>


On Jan 8, 2008, at 12:28 AM, Alex Mogilevsky wrote:

>
> You are right, there is redundancy in creating a special case for  
> zero... I hope it is the biggest issue with my proposal ;)

Maybe something like this is in the spirit of what you were going for:

10.3.3 and 10.3.7: Insert (immediately after the formula)

         If 'width' is not 'auto' and the width of the scrolling  
mechanism would affect any of the width calculations,
         subtract the width of the scrolling mechanism from 'width'.



>
> -----Original Message-----
> From: Andrew Fedoniouk [mailto:news@terrainformatica.com]
> Sent: Tuesday, January 08, 2008 12:03 AM
> To: Alex Mogilevsky
> Cc: fantasai; www-style@w3.org; Rossen Atanassov; Harel Williams
> Subject: Re: proposed change for scrollbars in size calculations
>
> Alex Mogilevsky wrote:
>> It appears there is an agreement for the main question of this  
>> thread: if width or height is specified on an element with  
>> overflow:scroll or overflow:auto, any scrollbars sizes don't  
>> affect dimensions of its border box but instead are subtracted  
>> from specified width/height.
>>
>> There is a broad interop on these test cases:
>> http://lists.w3.org/Archives/Public/www-style/2008Jan/att-0089/ 
>> scroll2.htm. 100% browsers use the model where no values of  
>> overflow (including 'scroll' and 'auto') affect dimensions of  
>> border box.
>>
>> To make the spec match the implementations, I propose the  
>> following updates to section 10:
>>
>>
>>
>> 10.3.3 and 10.3.7: Insert (immediately after the formula)
>>
>>         If 'width' is not 'auto' and scrollbar width is not zero,
>>         subtract scrollbar width from 'width'.
>
> Alex, it is just enough to say
>           If 'width' is not 'auto' subtract scrollbar width from  
> 'width'.
>
> "and ..." part is redundant there. Or I missed something in principle?
>
>>
>> 10.6.4: Insert (immediately after the formula)
>>
>>         If 'height' is not 'auto' and scrollbar height is not zero,
>>         subtract scrollbar height from 'height'.
>>
>
> Here too.
>
> --
> Andrew Fedoniouk.
>
> http://terrainformatica.com
>
Received on Tuesday, 8 January 2008 15:23:42 GMT

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