An interactive alt decision tree

Uses CSS :has instead of JS for interactivity
Does the image contain text?

If yes, the image contains text…

Is the image used in a link or a button, and would it be hard or impossible to understand what the link or the button does, if the image wasn’t there?

If yes, the image is contained in a control…

Does the image contribute meaning to the current page or context?

If yes, the image contributes meaning…

Is the image purely decorative or not intended for the user?

If yes, the image is purely decorative…

Is the image’s use not listed above or it’s unclear what alt text to provide?

If yes, the image’s use is not listed above…

If no, because the image’s use is listed above…