Closed Bug 1453442 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 10429 - [cssom] Add a test for mutation records when CSSStyleDeclaration.setPropertyValue is invoked.

Categories

(Core :: DOM: CSS Object Model, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 10429 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/w3c/web-platform-tests/pull/10429
Details from upstream follow.

Emilio Cobos Álvarez <emilio@crisal.io> wrote:
>  [cssom] Add a test for mutation records when CSSStyleDeclaration.setPropertyValue is invoked.
>  
>  Even if it doesn't mutate the block.
>  
>  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.
>  
>  
>
Component: web-platform-tests → DOM: CSS Object Model
Product: Testing → Core
Ran 4 tests and 4 subtests
OK     : 4
PASS   : 1
FAIL   : 3

New tests that have failures or other problems:
/css/cssom/cssstyledeclaration-mutationrecord-002.html
    CSSStyleDeclaration.setPropertyValue doesn't queue a mutation record when setting invalid values: FAIL
/css/cssom/cssstyledeclaration-mutationrecord-003.html
    CSSStyleDeclaration.removeProperty doesn't queue a mutation record when not actually removed, invoked from setPropertyValue: FAIL
/css/cssom/cssstyledeclaration-mutationrecord-004.html
    CSSStyleDeclaration.removeProperty doesn't queue a mutation record when not actually removed: FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b4c37d148d52
[wpt PR 10429] - [cssom] Add a test for mutation records when CSSStyleDeclaration.setPropertyValue is invoked., a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/f65230bf5095
[wpt PR 10429] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/b4c37d148d52
https://hg.mozilla.org/mozilla-central/rev/f65230bf5095
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in before you can comment on or make changes to this bug.