Ensure display: inline-block when animating width/height on inline elements. Fixes #14344.