W3C home > Mailing lists > Public > www-style@w3.org > August 2010

Re: [cssom-view] scrollWidth vs clientWidth

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 17 Aug 2010 14:57:05 -0700
Message-ID: <AANLkTinzsroNY9f26+PY_qGi1bp1L1FC8UsB1k2SMnBo@mail.gmail.com>
To: David Flanagan <david@davidflanagan.com>
Cc: Anne van Kesteren <annevk@opera.com>, www-style@w3.org
On Tue, Aug 17, 2010 at 1:45 PM, David Flanagan <david@davidflanagan.com> wrote:
> Tab,
>
> As the one who started this thread with my confusion, let me say that that
> is a very helpful diagram.  Thanks!  (And it doubles as a CSS
> brain-teaser--for the longest time I could not figure out how you got the
> scrollbar triangles.)
>
> A few comments:
>
> I think the existing  stuff in the spec uses the term "edge" rather than
> area.  Area makes more sense to me, but edge might be more consistent.
>
> I'd change "padding width" to "padding area width" or "padding edge width".
>
> I think the dotted and dashed lines around the content and padding areas
> look like borders, which confuses me since they are inside the border.
>
> I think you should set a background-color on the outermost div (and then
>  set it back to white or transparent on the next one in) so that the border
> area looks like a border.
>
> Since the example demonstrates horizontally-overflowing content, it should
> probably have a horizontal scrollbar as well as the vertical one.

Changes made: http://www.xanthir.com/diagrams/scrollwidth-clientwidth.html

~TJ
Received on Tuesday, 17 August 2010 21:58:02 GMT

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