https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 7e4176185aa3b8a7ba4b8498e2c8852bb4f79714 authored by seabld on 13 April 2012, 02:26:42 UTC
Added tag SEAMONKEY_2_9b3_RELEASE for changeset FIREFOX_12_0b5_BUILD1. CLOSED TREE a=release
Tip revision: 7e41761
637852-3.html
<!DOCTYPE HTML>
<html>
<body>
<div id="d" style="-moz-transform:scale(2); -moz-transform-origin:top left; border:10px solid black; height:100px; width:100px; overflow:hidden">
  <canvas width="100" height="100" id="c" style="display:block"></canvas>
  <div style="height:50px; background:blue;"></div>
  <div style="height:50px; background:orange;"></div>
</div>
<script>
var c = document.getElementById("c");
var ctx = c.getContext("2d");
ctx.fillStyle = "yellow";
ctx.fillRect(0, 0, c.width, c.height);
var d = document.getElementById("d");
d.scrollTop = 75;
</script>
</body>
</html>

back to top