The onChange callback is called prematurely when invoking setProperty with an important priority. This results in elements wrongly being assigned an inline style attribute value without !important. Setting multiple important properties in jsdom results in the last one assigned missing !important:
fixes https://github.com/jsdom/jsdom/issues/2649
The
onChange
callback is called prematurely when invokingsetProperty
with animportant
priority. This results in elements wrongly being assigned an inline style attribute value without!important
. Setting multiple important properties in jsdom results in the last one assigned missing!important
: