According to the spec, setting a css declaration "must return true if the serialization of declarations was changed as result of the steps. It may return false otherwise". This information is used when calling setProperty, "if updated is true, update style attribute for the CSS declaration block."
At the same time for cssText property, there are no conditions for setting the new value
fixes jsdom/jsdom#3305
According to the spec, setting a css declaration "must return true if the serialization of declarations was changed as result of the steps. It may return false otherwise". This information is used when calling
setProperty
, "if updated is true, update style attribute for the CSS declaration block."At the same time for
cssText
property, there are no conditions for setting the new value