As a Moderator, I agree with you, but I would like to inform you that we close the question in the following cases:
- We are absolutely sure that the question is off-topic.
- If we're not sure it's off-topic, so we let our valuable members decide that by raising the flags.
Regarding your examples,
let me take the first one because I already answered it :)
In this question, I checked the question as a normal SE Member and made sure that the user is working on SharePoint. where he needs to overwrite a style for a SharePoint class using CSS in Script Editor Web Part.
I know the answer and I can help at the same time the question is not flagged as off-topic and in my opinion (
as SE member), it's not clearly off-topic based on the OP description So where's the issue why not help?
Also at this question, Change input background color and text using Script Editor
Although this question is clearly off-topic, you have tried first to help the OP before raising your flag! After that you have raised the flag, So I checked and close it because your flag was valid!. In my opinion, what you have done is proper.
If the question is not clearly off-topic for you and no one raises a flag for this question as off-topic and you already know the answer so you should provide it! and I think this what did in all the above examples.
But This not means I agree on answering the off-topic questions, but it should be clearly off-topic and in case you find any off-topic question. please don't hesitate to raise your valuable flag and we will check it and take the correct action ASAP based on the SE rules.
Finally, the SE sites are created to help others. it's the main goal of all SE sites. and it's also our goal.
And The off-topic flag is not just created to close the question but it's considered as a type of help. where we raise this flag to inform the OP early we can't help you on this topic and guide him to ask his question at the correct place to get an accurate and quick answer.