Bug 1891710: part 2) Enable <Element-outerHTML.html> WPT for Trusted Types. r=smaug
[gecko.git] / gfx / tests / reftest / 1845828-1.html
blobd3aa93b80cfc8ff31a6d9122d8fd2881163aadd6
1 <!DOCTYPE html>
2 <meta charset=utf-8>
3 <style>
4 @font-face {
5 font-family: test;
6 src: url("Ahem.ttf");
8 </style>
9 <canvas id=c></canvas>
10 <script>
11 document.fonts.load("1px test").then(() => {
12 ctx = c.getContext("2d");
13 ctx.scale(10, 10);
14 ctx.font = "1.0px test";
15 ctx.fillText("10px test", 1, 2);
16 ctx.font = "1.1px test";
17 ctx.fillText("11px test", 1, 4);
18 ctx.font = "1.2px test";
19 ctx.fillText("12px test", 1, 6);
20 ctx.font = "1.3px test";
21 ctx.fillText("13px test", 1, 8);
22 ctx.font = "1.4px test";
23 ctx.fillText("14px test", 1, 10);
24 });
25 </script>