chromium/third_party/blink/web_tests/external/wpt/css/cssom/cssstyledeclaration-mutationrecord-005.html

<!doctype html>
<html style="color: inherit">
<meta charset="utf-8">
<title>CSSOM: CSSStyleDeclaration.setPropertyValue doesn't queue a mutation record for invalid values</title>
<link rel="help" href="https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-setproperty">
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:[email protected]">
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script>
  let test = async_test("CSSStyleDeclaration.setPropertyValue doesn't queue a mutation record when setting invalid values");
  let m = new MutationObserver(test.unreached_func("shouldn't queue a mutation record"));
  m.observe(document.documentElement,  { attributes: true });

  document.documentElement.style.width = "-100px";
  requestAnimationFrame(() => test.done());
</script>