**Steps to replicate the issue** (include links if applicable):
* either visit a wikipedia article having an image with class 'skin-invert-image'
* .. or create a test in the sandbox
* .. or edit e. g. https://de.wikipedia.org/w/index.php?title=Imine&oldid=237686738 , setting the class in preview mode, not saving the result
* activate dark mode
**What happens?**:
* the image is not inverted as expected, but rather remains with a dim white background
* the CSS rules in [[ https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/146aca876d293f75a992c41a5e6268739e089c17/resources/src/mediawiki.skinning/content.media-dark.less | content.media-dark.less ]] have precedence
**What should have happened instead?**:
* images with class 'skin-invert-image' should adhere to the style definition in [[ https://gerrit.wikimedia.org/g/mediawiki/skins/Vector/+/c2d8546506bfcb05d7adda81d6f336f6c2b56a42/resources/skins.vector.styles/CSSCustomProperties.less#47 | skins.vector.styles/CSSCustomProperties.less ]] and appear inverted compared to light mode
**Proposed solution:**:
Although skin-invert-image is defined in the Vector skin, while ```content.media-dark.less``` is a core component, it may make sense to modify core, because other skins may adopt the class name it may not strictly remain a Vector-only feature.
Patch for ```content.media-dark.less```: {F61318508}