image-rendering-script.html (895B)
1 <!DOCTYPE HTML> 2 <!-- 3 Any copyright is dedicated to the Public Domain. 4 http://creativecommons.org/licenses/publicdomain/ 5 --> 6 <html reftest-zoom="2" class="reftest-wait"> 7 <head> 8 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 9 <title>test video image-rendering script change</title> 10 <style type="text/css"> 11 #v1 { 12 image-rendering: auto; 13 } 14 </style> 15 <script type="text/javascript"> 16 function updateImageRendering() { 17 var video = document.getElementById("v1"); 18 video.style.imageRendering = '-moz-crisp-edges'; 19 document.documentElement.removeAttribute('class'); 20 } 21 22 window.addEventListener("MozReftestInvalidate", updateImageRendering); 23 </script> 24 </head> 25 26 <body> 27 <video src="qr.mp4" preload="metadata" id="v1" style="position:absolute; left:0; top:0"></video> 28 </body> 29 30 </html>