Bug 184496

Summary: CSSStyleDeclaration.setPropertyValue should always fire mutation records even if the declaration doesn't change.
Product: WebKit Reporter: Emilio Cobos Álvarez (:emilio) <emilio>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: bfulgham
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Emilio Cobos Álvarez (:emilio)
Reported 2018-04-11 06:53:15 PDT
See the test in https://github.com/w3c/web-platform-tests/pull/10429. https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-setpropertyvalue always ends up in https://drafts.csswg.org/cssom/#update-style-attribute-for (step 8), which calls https://dom.spec.whatwg.org/#concept-element-attributes-set-value, which does queue a mutation record even if the value doesn't change. This is consistent with setAttribute("style", getAttribute("style")), for example.
Attachments
Brent Fulgham
Comment 1 2022-07-15 13:57:46 PDT
Safari 15.5+ passes the relevant cssom mutation tests.
Note You need to log in before you can comment on or make changes to this bug.