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 281 forks source link

Problems if img is wrapped into "a" (anchor tag) #64

Open SpabRice opened 9 years ago

SpabRice commented 9 years ago

Hello,

I love this script. However, i have some problems for images which are a child af on anchor tag.

Example:<a href="#"><img src="..."/></a>

This seems odd to me. When I don't use the anchor tag it works fine. Am I missing something?

evanlelliott commented 9 years ago

I am having the same problem! Does anyone know a fix?

Thank you in advance...

torkiljohnsen commented 9 years ago

Got that issue too.

KineticPulse commented 7 years ago

2 years on - same problem :-) Any fix?

chinhphan099 commented 7 years ago

I got this issue for my logo sticky.