  toggleFiredOnDetails9 = true;
    }
  });
  // The toggle event should be fired once when declaring details9 with open
  // attribute.
  details9.open = true; // opens details9
  t9.step_timeout(function() {
    assert_true(details9.open);
    assert_true(toggleFiredOnDetails9);
    t9.done();
  }, 0);

  details10.ontoggle = t10.step_func_done(function(evt) {
    assert_unreached("toggle event fired on closed details element");
  });
  details10.open = false; // closes details10
  t10.step_timeout(functi