W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2001

Re: getComputedStyle() behavior

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 09 Dec 2001 16:34:23 -0500
Message-Id: <200112092134.QAA27704@no-knife.mit.edu>
To: Jesse McCarthy <mccarthy36@earthlink.net>
cc: www-dom@w3.org, www-style@w3.org
> Netscape returns an actual value in pixels for 'left', ...  though I
> don't know on what basis it is determining the point of reference for
> the offset...

Trust me, you don't want to know... :)

> should the behavior exhibited by Netscape be relied upon, that is can
> it be considered the definitive conforming behavior in this scenario
> (I doubt it)?

No.  That behavior has been removed as of early November.  So the next
Netscape release (and the 0.9.7 Mozilla milestone) will in fact behave
quite differently.  The values it returns will be based on the specified
style, not the actual position on the page.

I too would be interested in a clarification of the spec here (possibly
an official one, to be placed in the errata?)

Boris
-----------------
617-864-9910
-----------------
A computer lets you make more mistakes faster than any invention in 
human history, with the possible exceptions of handguns and tequila.
Received on Sunday, 9 December 2001 16:42:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:55 GMT