Only modify styles, triggering reflows, if needed