- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Thu, 12 Jul 2012 08:17:49 -0400
- To: www-style@w3.org
On 7/12/12 2:35 AM, Mike Sherov wrote: > I'm working with Ryosuke Niwa on correcting the behavior of > getComputedStyle(elem).top/left/right/bottom Note that right now the current CSSOM draft says that for top/left/right/bottom the computed value is returned, not the used value. So if you want to convert percentages to pixels, you also need to change the definition of resolved value to move top/left/right/bottom into the used value bucket. But yes, "auto" is never a used value for top/left/right/bottom for positioned things, as far as I can tell. Though CSS2.1 sure could be clearer about used values in general... -Boris
Received on Thursday, 12 July 2012 12:18:32 UTC