summaryrefslogtreecommitdiffstats
path: root/layout/reftests/font-loading-api/dynamic-insert-1.html
blob: 75adb021ce14582948f573917f8409de9979af5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html class="reftest-wait">
<style>
body { font-family: One; }
</style>
<script>
window.addEventListener("MozReftestInvalidate", function() {
  var face = new FontFace("One", "url(../fonts/markA.ttf)");
  face.load().then(function() {
    document.fonts.add(face);
    document.documentElement.className = "";
  });
});
</script>
<p>ABC</p>