Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <meta charset="utf-8"> |
michael@0 | 5 | <script type="text/javascript"> |
michael@0 | 6 | |
michael@0 | 7 | window.onload = function() { |
michael@0 | 8 | setup("1"); |
michael@0 | 9 | setup("2"); |
michael@0 | 10 | } |
michael@0 | 11 | |
michael@0 | 12 | function setup(id) { |
michael@0 | 13 | var c = document.getElementById(id); |
michael@0 | 14 | var names = ["webgl", "experimental-webgl"]; |
michael@0 | 15 | for (var i = 0; i < names.length; ++i) { |
michael@0 | 16 | gl = canvas.getContext(names[i]); |
michael@0 | 17 | if (gl) { |
michael@0 | 18 | break; |
michael@0 | 19 | } |
michael@0 | 20 | } |
michael@0 | 21 | gl.clearColor(1,0,0,1); |
michael@0 | 22 | gl.clear(gl.COLOR_BUFFER_BIT); |
michael@0 | 23 | setTimeout(function() { |
michael@0 | 24 | gl.enable(gl.SCISSOR_TEST); |
michael@0 | 25 | gl.scissor(0,0,50,50); |
michael@0 | 26 | gl.clearColor(0,1,0,1); |
michael@0 | 27 | gl.clear(gl.COLOR_BUFFER_BIT); |
michael@0 | 28 | }, 500); |
michael@0 | 29 | } |
michael@0 | 30 | </script> |
michael@0 | 31 | </head> |
michael@0 | 32 | <body> |
michael@0 | 33 | <canvas id="1"></canvas> |
michael@0 | 34 | <div style="height:4000px;">content that is tall like several articles</div> |
michael@0 | 35 | <canvas id="2"></canvas> |
michael@0 | 36 | </body> |
michael@0 | 37 | </html> |
michael@0 | 38 |