
test(function() {
  let elem = createTestElement("z-index: 10;");
  assert_equals(elem.style.cssText, "z-index: 10;");
}, "Style attribute should create CSS declaration block based on its content");

test(function() {
  let elem = createTestElement("z-index: 20;");
  let style = elem.style;
  assert_equals(style.cssText, "z-index: 20;");
  function assert_css_text(value, action) {
    assert_equals(style.cssText, value, "CSS declaration block after " + action);
  }
  elem.setAttribute("style", "z-index: 21