Fixes to transition on inline-block element transitions