On May 13, 6:03 am, Joel Dart <[email protected]> wrote:
> The problem is not with the rendering in those browsers.  The problem is that 
> the return value of window.getComputedStyle(test, 
> null).getPropertyValue("margin-left") is "0px" which is clearly not the used 
> value for margin-left.

Just as any other numeric value would be. IMO "auto" would be most
reasonable solution, since

"getComputedStyle() gives the final used values of all the CSS
properties of an element" [1], but the return value only contains only
absolute values [2].

Gregor

[1]
https://developer.mozilla.org/en/DOM:window.getComputedStyle
[2]
http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSview-getComputedStyle

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to