Re: [cssom-view] scrollWidth vs clientWidth

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 UTC