mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Cargoify servo
This commit is contained in:
parent
db2f642c32
commit
c6ab60dbfc
1761 changed files with 8423 additions and 2294 deletions
18
tests/html/test_canvas.html
Normal file
18
tests/html/test_canvas.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<canvas id="tutorial" style="border:1px solid #d3d3d3"></canvas>
|
||||
<script type="text/javascript">
|
||||
|
||||
canvas = document.getElementById('tutorial');
|
||||
canvas.width = 200;
|
||||
canvas.height = 200;
|
||||
|
||||
var ctx = canvas.getContext('2d');
|
||||
ctx.fillRect(10.0,10.0,100.0,100.0);
|
||||
ctx.strokeRect(20.0,40.0,80.0,80.0);
|
||||
ctx.clearRect(10.0,10.0,100.0,100.0);
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue