Transition to/from width: auto and height: auto properly

Only tested in Chrome 29, Safari 6.0.5 and Firefox 21.0 so far.