diff options
Diffstat (limited to 'testing/web-platform/tests/html/canvas/element/manual/filters/canvas-filter-shadow-and-properties-expected.html')
-rw-r--r-- | testing/web-platform/tests/html/canvas/element/manual/filters/canvas-filter-shadow-and-properties-expected.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/canvas/element/manual/filters/canvas-filter-shadow-and-properties-expected.html b/testing/web-platform/tests/html/canvas/element/manual/filters/canvas-filter-shadow-and-properties-expected.html new file mode 100644 index 0000000000..294a219b70 --- /dev/null +++ b/testing/web-platform/tests/html/canvas/element/manual/filters/canvas-filter-shadow-and-properties-expected.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<body> + <canvas id="canvas" width="300" height="300"></canvas> +</body> +<script> + /* + The expected behavior when both shadow properties and filters are used at the + same time is that the filter is applied to the elements drawn and the shadow + properties create another shadow that includes even shadows of the + filter-generated shadows. + */ + var canvas = document.getElementById('canvas'); + var ctx = canvas.getContext('2d'); + ctx.fillStyle = 'cyan'; + ctx.fillRect(40, 40, 50, 50); + ctx.fillRect(30, 30, 50, 50); + ctx.fillStyle = 'red'; + ctx.fillRect(20, 20, 50, 50); + ctx.fillStyle = 'black'; + ctx.fillRect(10, 10, 50, 50); +</script> |