Am gonna share a situation I recently faced (that I also faced a lot of time before). It's about this question (deleted now).
Here is what happened:
This user asked a question about CSS and animation, there is nothing bad in the question but the question is (for me) cleary off topic simply because "This question was caused by a simple typographical error". We can notice this here. We can clearly see that we have syntax errors that we can easily fix by simply checking the documentation.
So I voted to close it as I don't think it deserves an answer BUT I also commented in order to help the user getting his issue fixed.
By the way this user was very ungrateful and a bit rude with me and when I made the effort to share the final correct code with him, he insulted me with very bad words and then deleted his question (maybe thinking that we can no more see it). Of course, his insult got deleted by the system before I can get a screenshot of it, but am pretty sure a moderator can still see it.
What to do in such situation?
The question got deleted and the bad comment got deleted too.
Should I simply move on and forget? Should I flag such behavior somewhere as a bad behavior?
By the way, it's not the first time. I always face such situation especially when closing as duplicate. The asker don't even take the time to read the duplicate question and start complaining and being rude. And when they get downvoted, they are upset thinking that the one who's commenting is the downvoter even if they get many downvotes and even if their issue is being fixed by a comment or in the duplicate question.
Why people are giving a lot of importance to downvotes and/or their closed questions when at the end they have the needed answer (either by a comment or within the duplicate question)?
Should we also give importance to such behavior in order to limit them? Or we simply don't care as most of the question involved in such situation will get deleted either by the asker or by votes.
UPDATE
Of course, if the user will repeat the same action again and again, I will flag for sure (as I did before) but should I give importance to such isolated case? I face them many times but rarely with the same user. For me they are a lot but for this bad user it can be the first time BUT maybe he did the same with other users and no one flagged him before.
Some related questions where I did not find the needed answer:
• What should I do about a user that I'm trying to help and is calling me stupid
• Is it useful to flag comments on a deleted question as offensive?
I can't see the question
--> and you cannot see the comments also :) and the rude one that is only visible to moderator ... the issue is not with the question, someone can answer it, it's only my thought if i consider it as off topic .. BUT my concerns was about the behavior of the person. I closed the question but i commented to give him the correct code that he needs, thus the reason he deleted his question but he insulted me before deleting.