Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: layout/reftests/canvas/reftest.list
<!DOCTYPE html>
<html>
<body>
<canvas id="c" width="50" height="50"></canvas>
<script>
const c = document.getElementById("c");
const ctx = c.getContext("2d");
ctx.translate(20, 20);
ctx.beginPath();
ctx.lineTo(0, 0);
ctx.lineTo(0, 20);
ctx.stroke();
</script>
</body>
</html>