[fix] check window.Env before window.Env.fb to avoid error
simplify the way transitioned properties get removed from inline