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

Re: [cssom-view] Incorrect definitions of scrollWidth and scrollHeight

From: Simon Pieters <simonp@opera.com>
Date: Mon, 27 May 2013 15:48:24 +0200
To: "Leif Arne Storset" <lstorset@opera.com>, "www-style@w3.org" <www-style@w3.org>, "Matt Rakow" <marakow@microsoft.com>
Message-ID: <op.wxqwmy2hidj3kv@simons-macbook-pro.local>
On Wed, 17 Apr 2013 01:10:52 +0200, Matt Rakow <marakow@microsoft.com>  
wrote:

>> > The spec now says:
>> >
>> > [[
>> > If the element is the root element and the Document is not in quirks
>> > mode return max(document content width, value of innerWidth).
>> > ]]
>> >
>> > https://dvcs.w3.org/hg/csswg/raw-file/tip/cssom-
>> view/Overview.html#wid
>> > l-Element-scrollWidth
>
> This doesn't exactly match Trident/Gecko/Webkit/Presto behavior when  
> scrollbars are present and the viewport is larger than the document  
> content.  innerWidth/innerHeight explicitly includes the size of the  
> rendered scrollbar, whereas scrollWidth/scrollHeight on the root element  
> excludes the scrollbar.

Fixed. https://dvcs.w3.org/hg/csswg/rev/3e45009199b6

-- 
Simon Pieters
Opera Software
Received on Monday, 27 May 2013 13:48:43 UTC

This archive was generated by hypermail 2.3.1 : Monday, 27 May 2013 13:48:44 UTC