If you set an element with CSS margin: auto, Element.getStyle('margin') returns 0px. This might be a "feature", but it's also an inconsistency as the same code works correctly when the margin is set to a pixel value.
Here's a demo that shows my problem. If you use getStyle then setStyle, some styles are retained correctly while 2 of the 3 margins are lost.
why closed? related to #2328