Skip to content

Truly independent web browser

404 B
Raw Blame
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {
    // Setting strokeStyle on a detached canvas (no layout node) should not crash.
    const canvas = document.createElement("canvas");
    const ctx = canvas.getContext("2d");
    ctx.strokeStyle = "red";
    println(ctx.strokeStyle);
    ctx.strokeStyle = "rgba(0, 128, 255, 0.5)";
    println(ctx.strokeStyle);
});
</script>