Imagine an icon embedded in text that should be perceived as its part and behave like a letter. To achieve this it should have the same color as the text around. Finding the right color is easy in jQuery.
The problem is that the color may change. Either a script may change the CSS value, or a different value may be set in the :hover
pseudoclass, and so on. In the case I've run onto it's the :hover
value of a div several levels above. The text color around the icon changes, but how can I detect this event in order to adjust the icon itself?