blob: 5e8f003c5fc7fb41bfd6969b8094e038c05cdad1 [file] [log] [blame]
<style>
@font-face {
font-family: no-such-font;
src: url(no-such-file.ttf);
}
</style>
<canvas id="target"></canvas>
<script>
canvas = document.getElementById("target");
ctx = canvas.getContext('2d');
ctx.font = "100px no-such-font, ahem";
ctx.fillStyle = "red";
ctx.fillText("B", 0, 100);
ctx.fillStyle = "green";
canvas.parentNode.removeChild(canvas);
if (window.testRunner) {
testRunner.dumpAsText(true);
testRunner.waitUntilDone();
}
setTimeout(function()
{
ctx.fillText("A", 0, 100);
document.body.appendChild(canvas);
if (window.testRunner)
testRunner.notifyDone();
}, 50);
</script>