layout/reftests/svg/dynamic-use-06.svg

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     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"
     6      xmlns:xlink="http://www.w3.org/1999/xlink"
     7      class="reftest-wait">
     8   <defs>
     9     <symbol id="sym1">
    10       <rect width="100" height="100" fill="lime" />
    11     </symbol>
    12   </defs>
    13   <rect width="100%" height="100%" fill="lime"/>
    14   <rect x="50%" width="100" height="100" fill="red" />
    15   <svg id="svg" width="50%">
    16     <use x="50%" xlink:href="#sym1"/>
    17   </svg>
    18   <script type="text/javascript">
    19     <![CDATA[
    21     document.addEventListener("MozReftestInvalidate", doTest, false);
    22     setTimeout(doTest, 4000); // fallback for running outside reftest
    24     function doTest() {
    25         var svg = document.getElementById("svg");
    26         svg.setAttribute("width", "100%");
    27         document.documentElement.removeAttribute('class');
    28       }
    30     ]]>
    31   </script>
    32 </svg>

mercurial