Skip to content

Using the CSS filter declaration to invert colors of svg icons loaded via an img element. #30630

Discussion options

You must be logged in to vote

as an aside, i'd say that including SVGs with <img> loses quite a bit of the advantages of the SVGs, such as the easy stylability / how they adapt to currentColor, etc (as the <img> creates a completely detached new content that is not aware of what the current color of the bit where is was included in is)

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@fantasyui-com
Comment options

@MartijnCuppens
Comment options

Answer selected by MartijnCuppens
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants