The CSSWG has resolved that the `(prefers-color-scheme)` media query reflects `<meta name=color-scheme>`. ✨🎉
Now image and videos elements can load the correct image for the color scheme of the document.
Thanks @joshtumath et al for helping out with this one 🙌🙏
https://github.com/w3c/csswg-drafts/issues/13377#issuecomment-4166335486

[mediaqueries] Effect of <meta name=color-scheme> on img and video sources · Issue #13377 · w3c/csswg-drafts
NoteThis was initially discussed in #10249 (comment) @johannesodland has raised that, if the author sets <meta name=color-scheme content=dark>, it sets the document's used color scheme to dark, but...