Implements syncStyles.