Re: [cssom-view] scrollHeight and scrollWidth definitions have some problems

On Wed, Jun 13, 2012 at 2:43 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> 2)  For things that are not scrollable the current text says to return
>    the padding-box dimensions, but the only UAs that actually do that
>    are WebKit and IE9 in IE7 mode.  Everyone else, including IE9 in
>    other modes, returns border-box dimensions, according to
>    https://bugzilla.mozilla.org/**show_bug.cgi?id=755971#c57<https://bugzilla.mozilla.org/show_bug.cgi?id=755971#c57>and
>    https://bugzilla.mozilla.org/**show_bug.cgi?id=755971#c61<https://bugzilla.mozilla.org/show_bug.cgi?id=755971#c61>
>

I think padding-box dimensions are the only logical choice, since for a
scrollable element the scrollWidth/scrollHeight never include the element's
borders.

Rob
-- 
“You have heard that it was said, ‘Love your neighbor and hate your enemy.’
But I tell you, love your enemies and pray for those who persecute you,
that you may be children of your Father in heaven. ... If you love those
who love you, what reward will you get? Are not even the tax collectors
doing that? And if you greet only your own people, what are you doing more
than others?" [Matthew 5:43-47]

Received on Thursday, 21 June 2012 23:10:25 UTC