So, I have a selector which matches a <td>. This <td> inherits from a css class. Let's call it item.
item.style.backgroundImage
returns "", but
window.getComputedStyle(item).backgroundImage
returns
"url("http://some-url.com")"
I want to modify the css class so that the backgroundImage is something else for all inheritors.
I haven't been able to figure out how to do this! I can change the backgroundImage of the individual element, but I don't know how to get the class object that defines backgroundImageoriginally.