W3C home > Mailing lists > Public > www-style@w3.org > June 2012

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

From: Robert O'Callahan <robert@ocallahan.org>
Date: Fri, 22 Jun 2012 11:09:54 +1200
Message-ID: <CAOp6jLYGscet4QeQYnKki15DX5yGxNHJeV-P4kTs9tzcoLr=OA@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style@w3.org
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:55 GMT