  // Update unicode-range so that f5 will be used for all characters in #test4
  f5.unicodeRange = "U+00??";
  f6.unicodeRange = "U+0000";

  document.fonts.ready.then(function() {
    document.documentElement.classList.remove("reftest-wait");
  })
}
</script>
<body onload="run()">
<div>
All lines below should use the same serif font, with the word "weight" in italics:
<p id=test1>Using original family name of a FontFace</p>
<p id=test2>Using updated family name of a FontFace</p>
<p id=test3>Using updated <