New issue
Advanced search Search tips

Issue 831578 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: Bug



Sign in to add a comment

Style attribute mutations should always fire mutation records even if the declaration doesn't change.

Project Member Reported by emilio@chromium.org, Apr 11 2018

Issue description

Chrome Version: 65.0.3325.181 (Developer Build) Fedora Project (64-bit)
Other browsers tested:
  Add OK or FAIL after other browsers where you have tested this issue:
     Safari: FAIL
    Firefox: OK
    IE/Edge: Unknown

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 makes this consistent with setAttribute("style", getAttribute("style")),
for example.
 

Sign in to add a comment