mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 14:11:50 +03:00
11 lines
253 B
HTML
11 lines
253 B
HTML
<canvas width="150" height="150">
|
|
</canvas>
|
|
|
|
<script>
|
|
const canvas = document.querySelector('canvas');
|
|
const ctx = canvas.getContext('2d');
|
|
ctx.fillRect(25, 25, 100, 100);
|
|
ctx.clearRect(45, 45, 60, 60);
|
|
ctx.strokeRect(50, 50, 50, 50);
|
|
</script>
|