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

Re: [cssom-view] scrollWidth vs clientWidth

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Mon, 16 Aug 2010 17:27:01 -0700
Message-ID: <AANLkTinGJXkhsgTAqfbAfjAF7C5YADEq9hDPVmzVCA6u@mail.gmail.com>
To: David Flanagan <david@davidflanagan.com>
Cc: www-style@w3.org
On 8/16/10, David Flanagan <david@davidflanagan.com> wrote:
> Hi,
>
> I cannot tell, from reading the spec, what the difference between the
> clientWidth and scrollWidth is supposed to be (and also clientHeight and
> scrollHeight, of course).
>
> The scrollWidth is:
>
>> the computed value of the padding-left property of A, plus the computed
>> value of the padding-right  property of A, plus the content width of A.
>
> The clientWidth is:
>
>> the viewport height

Is it really that bad?
Received on Tuesday, 17 August 2010 00:27:28 GMT

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