<html>
<head>
  <title>Testcase for bug 448329 of Mozilla</title>
<script>
function go() {
  test("myFrame", "backcolor");
}
function test(id,cmd) {
  var doc = document.getElementById(id).contentDocument;
  doc.designMode = "On";

  var selection = doc.defaultView.getSelection();
  selection.removeAllRanges();
  selection.addRange(doc.createRange());

  doc.queryCommandIndeterm(cmd);
}
</script>
</head>
<body onload="go()"><iframe id="myFrame"></iframe></body>
</html>
