W3C home > Mailing lists > Public > www-style@w3.org > March 2013

Re: [cssom] Interaction of getComputedStyle.width/height and box-sizing

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 29 Mar 2013 13:45:10 -0400
Message-ID: <5155D326.8070308@mit.edu>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: www-style list <www-style@w3.org>
On 3/29/13 1:32 PM, Tab Atkins Jr. wrote:
> It should be something like "If box-sizing is 'content-box', use the
> 2.1 formula.  If it's 'padding-box', use 'margin-left' +
> 'border-left-width' + 'width' + 'border-right-width' + 'margin-right'.
> If it's 'border-box', etc." + language about how to determine the size
> of the content box given the various values.

I see.  That _really_ needs to be specced somewhere, if so.

But it's not actually clear to me why this is a better formulation than 
having used width actually mean content-box width, honestly.  Why is it 

> Don't trust Box for anything worthwhile.

Well, do we have a spec that actually defines block layout anymore?  ;)

Received on Friday, 29 March 2013 17:45:40 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:09 UTC