diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-paint-api/paint2d-roundRect-ref.html')
-rw-r--r-- | testing/web-platform/tests/css/css-paint-api/paint2d-roundRect-ref.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-paint-api/paint2d-roundRect-ref.html b/testing/web-platform/tests/css/css-paint-api/paint2d-roundRect-ref.html new file mode 100644 index 0000000000..71e9031f4b --- /dev/null +++ b/testing/web-platform/tests/css/css-paint-api/paint2d-roundRect-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> +<body> +<canvas id ="output" width="100" height="100" style="background: blue;"></canvas> +<script> +var canvas = document.getElementById('output'); +var ctx = canvas.getContext('2d'); + +ctx.fillStyle = 'green'; +ctx.roundRect(10, 10, 80, 80, [20, 40, 10]); +ctx.fill(); +</script> +</body> +</html> |