mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
19 lines
393 B
HTML
19 lines
393 B
HTML
<!doctype html>
|
|
<canvas id="canvas"></canvas>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
promiseTest(async () => {
|
|
canvas.style.fontSize = "10px";
|
|
|
|
await animationFrame();
|
|
await animationFrame();
|
|
|
|
const ctx = canvas.getContext("2d");
|
|
|
|
canvas.style.fontSize = "20px";
|
|
|
|
ctx.font = "1em serif";
|
|
println(ctx.font);
|
|
});
|
|
</script>
|