Do you have to insert an image into the DOM to get its dimensions?
Yanick and many others say yes, add the img to the dom off screen to get its dimensions (after it is loaded).
Alex, Nickf and others say no, you can create an img element that is not added to the dom. Its image will then be loaded and sized.
Which opinion is right for "modern" browsers? Are there any tests which cover this question. Is this behavior by design for the browsers?
ADDED: I'm looking for a source / reference that confirms this behavior. I already have code examples a plenty.