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

Re: [cssom-view] Definition of scrollWidth doesn't seem to make sense

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 19 Jan 2012 07:50:29 -0800
Message-ID: <CAAWBYDA3E-hxxsYNUSE0RRgDhfg+=YQiT4AjqvGB30Lq-nQa4g@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style@w3.org
On Tue, Jan 17, 2012 at 9:26 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> https://bugzilla.mozilla.org/attachment.cgi?id=589081 shows 210 in all
> modern browsers.  Per the definition currently in the spec I _think_ it
> should say 220, because that definition talks about adding up the paddings
> and the "content width", but the content can (and in this case does) overlap
> the paddings.
>
> I believe in this instance the spec is what's wrong, not the
> implementations.

I know I tested overflow situations when I was creating my explanatory
diagram <http://www.xanthir.com/diagrams/scrollwidth-clientwidth.html>,
but I guess I somehow missed the case of "overflow + padding-right".

You're right - the definition doesn't match reality.

~TJ
Received on Thursday, 19 January 2012 15:51:18 GMT

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