Fix transition from 'auto' in Safari