[Webkit-unassigned] [Bug 184496] New: CSSStyleDeclaration.setPropertyValue should always fire mutation records even if the declaration doesn't change.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 11 06:53:15 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=184496

            Bug ID: 184496
           Summary: CSSStyleDeclaration.setPropertyValue should always
                    fire mutation records even if the declaration doesn't
                    change.
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: emilio at crisal.io

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180411/13eccf16/attachment-0002.html>


More information about the webkit-unassigned mailing list