Targeting SVG Images with CSS Attribute Selectors and filter: invert()

When you cannot inline an SVG or use it as a mask-image, a combination of the ends-with attribute selector and filter: invert() offers a clean, CSS-only solution for adapting icon colours across themes.