mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 09:57:32 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
18
layout/reftests/canvas/transformed-gradient.html
Normal file
18
layout/reftests/canvas/transformed-gradient.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<html>
|
||||
<body>
|
||||
<canvas width="500" height="500"></canvas>
|
||||
<script>
|
||||
var canvas = document.getElementsByTagName('canvas')[0];
|
||||
var ctx = canvas.getContext('2d');
|
||||
|
||||
ctx.translate(500, 500);
|
||||
var lineargradient = ctx.createLinearGradient(-500,-500,0,0);
|
||||
lineargradient.addColorStop(0,'red');
|
||||
lineargradient.addColorStop(1,'black');
|
||||
ctx.fillStyle = lineargradient;
|
||||
ctx.beginPath();
|
||||
ctx.rect(-500, -500, 250, 250);
|
||||
ctx.fill();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue