Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / as-object / resources / nested-embedded-svg-size-changes-target.html
blobe05443cd577ff4e88543c7813088c8287ec978ea
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <body style="margin: 0px">
3 <object onload='documentLoaded()' data="embedded-svg-size-changes.svg"></object>
4 <script>
5 window.canChangeSize = false;
7 function documentLoaded() {
8 window.canChangeSize = true;
11 function changeSize() {
12 // Forward size change request to embedded SVG document.
13 var myObject = document.getElementsByTagName("object")[0];
14 var svgDoc = myObject.getSVGDocument();
15 var svgWindow = svgDoc.defaultView;
16 svgWindow.changeSize();
18 </script>
19 </body>
20 </html>