1<!DOCTYPE HTML> 2<html> 3<script> 4var gl; 5function runTest() { 6 if (window.testRunner) 7 testRunner.waitUntilDone(); 8 9 gl = document.getElementById('canvas').getContext("webgl"); 10 if (!gl) { 11 alert("No WebGL context found"); 12 return; 13 } 14 15 gl.enable(gl.SCISSOR_TEST); 16 gl.clearColor(1, 0, 0, 1); 17 gl.clear(gl.COLOR_BUFFER_BIT); 18} 19 20</script> 21<body onload='runTest()'> 22 Right click red square and save image. A red square image should be saved. <br> 23 <canvas id='canvas' width="100" height="100"></canvas> 24</body> 25</html> 26