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

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 UTC