replaced-element-zoom-01.html (752B)
1 <!doctype html> 2 <html reftest-zoom="2" class="reftest-wait"> 3 <head> 4 <title>SVG page zoom test</title> 5 <style> 6 iframe, object, img { 7 width: 150px; 8 height: 100px; 9 border: none; 10 } 11 body { 12 background-color: lime; 13 } 14 </style> 15 <script> 16 17 var expected = 3; 18 var actual = 0; 19 20 function process_load() { 21 ++actual; 22 if (actual == expected) 23 document.documentElement.removeAttribute("class"); 24 } 25 26 </script> 27 </head> 28 <body> 29 <div> 30 <iframe onload="process_load()" src="pass.svg"></iframe> 31 </div> 32 <div> 33 <object onload="process_load()" data="pass.svg"></object> 34 </div> 35 <div> 36 <img onload="process_load()" src="pass.svg"> 37 </div> 38 </body> 39 </html>