blob: cc10684a9bc2f5e18a71c34f590161e36c5d33bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
<title>Canvas test: 2d.layer.shadow-from-outside-canvas.long-distance</title>
<h1>2d.layer.shadow-from-outside-canvas.long-distance</h1>
<p class="desc">Checks shadow produced by object drawn outside the canvas</p>
<canvas id="canvas" width="200" height="200">
<p class="fallback">FAIL (fallback content)</p>
</canvas>
<script>
const canvas = document.getElementById("canvas");
const ctx = canvas.getContext('2d');
const delta = 10000;
// No clipping.
ctx.fillStyle = 'green';
ctx.fillRect(0, 0, 100, 100);
</script>
|