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

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

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Thu, 19 Jan 2012 13:30:41 +0100
Message-ID: <4F180CF1.4010709@kozea.fr>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: www-style@w3.org
Le 17/01/2012 18:26, Boris Zbarsky a écrit :
> that definition talks about adding up the
> paddings and the "content width", but the content can (and in this case
> does) overlap the paddings.

Hi,

I’m not sure how scrollWidth is or should be defined, but maybe the 
"content width" refers to the width of the content area, as defined in 
the box model:

http://www.w3.org/TR/CSS21/box.html#box-dimensions

In that case, it is the used or actual value of the 'width' property 
(assuming 'box-sizing: content-box') and does not depend on the 
element’s children.

Regards,

-- 
Simon Sapin
Received on Thursday, 19 January 2012 12:31:24 GMT

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