https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 958e6d9bcc78482a0774e941bfb1253ef628364b authored by seabld on 15 June 2012, 11:54:31 UTC
Added tag SEAMONKEY_2_10_1_RELEASE for changeset FIREFOX_13_0_1_BUILD1. CLOSED TREE a=release
Tip revision: 958e6d9
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