;");
  assert_css_text("z-index: 21;", "changing the style attribute");
  elem.removeAttribute("style");
  assert_css_text("", "removing the style attribute");
  elem.setAttribute("style", "position: absolute;");
  assert_css_text("position: absolute;", "adding style attribute again");
}, "Changes to style attribute should reflect on CSS declaration block");

test(function() {
  let elem = createTestElement("z-index: 30;");
  let style = elem.style;
  assert_equals(style.cssText, "z-index: 30;");
  function