mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +01:00
Update web-platform-tests to revision 3f9178031eec5374c9a7d5709a7e11ba4a1955ed
This commit is contained in:
parent
4997ec26c2
commit
a5af9a106a
192 changed files with 3943 additions and 1927 deletions
|
@ -0,0 +1,17 @@
|
|||
<link rel="match" href="drawimage_canvas_self_ref.html">
|
||||
<canvas id="dest" height="100" width="100"></canvas>
|
||||
<script>
|
||||
var canvasWidth = canvasHeight = 100;
|
||||
var destWidth = canvasWidth / 4;
|
||||
var destHeight = canvasHeight / 4;
|
||||
var destCanvas = document.getElementById('dest');
|
||||
var destCtx = destCanvas.getContext('2d');
|
||||
|
||||
destCtx.fillStyle = 'red';
|
||||
destCtx.fillRect(0, 0, canvasWidth, canvasHeight);
|
||||
destCtx.fillStyle = 'green';
|
||||
destCtx.fillRect(0, 0, canvasWidth / 2, canvasHeight / 2);
|
||||
destCtx.drawImage(destCanvas,
|
||||
0, 0, destWidth, destHeight,
|
||||
canvasWidth / 2, canvasHeight / 2, destWidth, destHeight);
|
||||
</script>
|
|
@ -0,0 +1,11 @@
|
|||
<canvas id="dest" height="100" width="100"></canvas>
|
||||
<script>
|
||||
var canvasWidth = canvasHeight = 100;
|
||||
var destCanvas = document.getElementById('dest');
|
||||
var destCtx = destCanvas.getContext('2d');
|
||||
destCtx.fillStyle = 'red';
|
||||
destCtx.fillRect(0, 0, canvasWidth, canvasHeight);
|
||||
destCtx.fillStyle = 'green';
|
||||
destCtx.fillRect(0, 0, canvasWidth / 2, canvasHeight / 2);
|
||||
destCtx.fillRect(canvasWidth / 2, canvasHeight / 2, canvasWidth / 4, canvasHeight / 4);
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue