Automatic update from web-platform-tests new reftest Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com> -- generate canvas regression test Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com> -- wpt-commits: d8943e978103c68e07637ad6114e06c1fb0d86c6, a3f19d3119a36216eac2f0dd22bb23e0f0aa7d55 wpt-pr: 59780
17 lines
562 B
HTML
17 lines
562 B
HTML
<!DOCTYPE html>
|
|
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
|
|
<meta charset="UTF-8">
|
|
<title>Canvas test: 2d.path.clip.scale</title>
|
|
<h1>2d.path.clip.scale</h1>
|
|
<p class="desc">clip() with non-identity transform applies the correct clip region</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');
|
|
|
|
ctx.fillStyle = 'green';
|
|
ctx.fillRect(0, 0, 200, 200);
|
|
</script>
|