layout/reftests/svg/dynamic-inner-svg-01.svg

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     1 <!--
     2      Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait"
     6   onload="startTest()">
     8 <script>
     9 <![CDATA[
    11 function startTest() {
    12   document.addEventListener("MozReftestInvalidate", boom, false);
    13   setTimeout(boom, 4000); // fallback for running outside reftest
    14 }
    16 function boom() {
    17   document.getElementById('inner1').setAttribute('x', 20);
    18   document.getElementById('inner2').setAttribute('width', 100);
    19   document.documentElement.removeAttribute("class");
    20 }
    22 ]]>
    23 </script>
    25   <rect width="100%" height="100%" fill="lime"/>
    27   <rect x="20" y="20" width="100" height="100" fill="red"/>
    29   <svg id="inner1" x="260" y="20" width="100" height="100">
    30     <rect x="0" y="0" width="100" height="100" fill="lime"/>
    31   </svg>
    33   <rect x="20" y="140" width="100" height="100" fill="red"/>
    35   <svg id="inner2" x="20" y="140" width="1" height="100">
    36     <rect x="0" y="0" width="100" height="100" fill="lime"/>
    37   </svg>
    39 </svg>

mercurial