kennethcachia / background-check

Automatically switch to a darker or a lighter version of an element depending on the brightness of images behind it.
http://kennethcachia.com/background-check/
MIT License
3.27k stars 282 forks source link

Using on SVG causes error 'd.replace is not a function' #68

Open onezerodigits opened 9 years ago

onezerodigits commented 9 years ago

I made a reduced example to demonstrate: http://codepen.io/nsteiner/pen/XbaMjg

Note, it works fine on a parent element - and it's easy enough to target the SVG via CSS that way, but I thought it's worth reporting.