Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-font-loading/fontface-from-arraybuffer-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="test-wait">
<meta charset="utf-8">
<title>Loading a FontFace from an ArrayBuffer must not crash</title>
<link rel="author" href="mailto:dholbert@mozilla.com">
<script>
fetch("/fonts/Ahem.ttf")
.then(res => res.arrayBuffer())
.then(async buffer => {
const face = new FontFace("bufferFont", buffer);
document.fonts.add(face);
await face.load();
document.documentElement.className = "";
});
</script>
</html>