Files
ladybird/Tests/LibWeb/Crash/HTML/canvas-2d-in-detached-doc.html
Tim Ledbetter 26389363ad LibGfx+LibWeb: Move Skia backend context to process level singleton
Previously, this was attached to the traversable navigable. Using a
singleton instead allows us to use the context for detached documents.
2026-03-19 13:35:16 +01:00

9 lines
228 B
HTML

<!DOCTYPE html>
<script>
var doc = document.implementation.createHTMLDocument("");
var canvas = doc.createElement("canvas");
doc.body.appendChild(canvas);
var ctx = canvas.getContext("2d");
ctx.fillRect(0, 0, 50, 50);
</script>