When is it acceptable to asign CSS styles using JS?

I think that rule is a safe guard against people using styles directly when they could be defining classes. I think if it makes sense to use style directly, then it’s acceptable? But it might slow down your plugin approval process because the bot will complain.