gecko-dev/gfx/tests/reftest/1801588-1.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 строки
396 B
HTML
Исходник Обычный вид История

<!DOCTYPE html>
<html>
<body>
<canvas id="canvas" width="100" height="100"></canvas>
<script>
var c = document.getElementById("canvas");
var ctx = c.getContext("2d");
ctx.fillStyle = "red";
ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height);
ctx.globalCompositeOperation = "copy";
ctx.fillStyle = "green";
ctx.fillRect(0, 0, 50, 50);
</script>
</body>
</html>