gecko-dev/layout/reftests/font-loading-api/dynamic-insert-1.html

16 строки
357 B
HTML

<!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>