fix edge transitions in firefox