Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / font-update.html
blobd621d8943e76dd71a4102c41ea67202f41544383
1 <style>
2 @font-face {
3 font-family: no-such-font;
4 src: url(no-such-file.ttf);
6 </style>
7 <canvas id="target"></canvas>
8 <script>
9 canvas = document.getElementById("target");
10 ctx = canvas.getContext('2d');
11 ctx.font = "100px no-such-font, ahem";
12 ctx.fillStyle = "red";
13 ctx.fillText("B", 0, 100);
14 ctx.fillStyle = "green";
15 canvas.parentNode.removeChild(canvas);
16 if (window.testRunner)
17 testRunner.waitUntilDone();
18 setTimeout(function()
20 ctx.fillText("A", 0, 100);
21 document.body.appendChild(canvas);
22 if (window.testRunner)
23 testRunner.notifyDone();
24 }, 50);
25 </script>