If an element style property is important (set either trough style=""
or JS), how can one remove it?
removeProperty()
doesn't work (jsfiddle):
elem.style.setProperty('background', '#faa', 'important');
elem.style.removeProperty('background'); // doesn't work
(Preferably a frameworkless solution, it only has to work in Chrome.)