layout/reftests/bugs/582476-1-ref.svg

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

michael@0 1 <svg xmlns="http://www.w3.org/2000/svg">
michael@0 2 <script>
michael@0 3 iframeLoadedFirst = false;
michael@0 4 parentLoadedFirst = false;
michael@0 5
michael@0 6 function iframeLoad() {
michael@0 7 if (parentLoadedFirst) {
michael@0 8 setup();
michael@0 9 } else {
michael@0 10 iframeLoadedFirst = true;
michael@0 11 }
michael@0 12 }
michael@0 13
michael@0 14 window.onload = function() {
michael@0 15 if (iframeLoadedFirst) {
michael@0 16 setup();
michael@0 17 } else {
michael@0 18 parentLoadedFirst = true;
michael@0 19 }
michael@0 20 }
michael@0 21
michael@0 22 function setup() {
michael@0 23 var scrollTarget = document.getElementById("ifrm").contentWindow;
michael@0 24 scrollTarget.scrollTo(0,100000);
michael@0 25 }
michael@0 26 </script>
michael@0 27 <foreignObject height="100%" width="100%">
michael@0 28 <iframe id="ifrm" onload="iframeLoad();" width="100%" height="100%" xmlns="http://www.w3.org/1999/xhtml" src="582476-1-ref-helper.html"/>
michael@0 29 </foreignObject>
michael@0 30 </svg>

mercurial