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

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <?xml version="1.0" encoding="Windows-1252"?>
     2 <!--
     3      Any copyright is dedicated to the Public Domain.
     4      http://creativecommons.org/publicdomain/zero/1.0/
     5 -->
     6 <svg xmlns="http://www.w3.org/2000/svg"
     7      xmlns:xlink="http://www.w3.org/1999/xlink"
     8      style="background: red;" class="reftest-wait">
     9   <defs>
    10      <symbol id="sym1">
    11        <rect width="100" height="100" fill="lime" />
    12     </symbol>
    13   </defs>
    14   <rect width="100%" height="100%" fill="lime"/>
    15   <rect width="100" height="100" fill="red" />
    16   <use id="u" xlink:href="#sym1" width="1" />
    17   <script type="text/javascript">
    18     <![CDATA[
    20     document.addEventListener("MozReftestInvalidate", doTest, false);
    21     setTimeout(doTest, 4000); // fallback for running outside reftest
    23     function doTest() {
    24         var u = document.getElementById("u");
    25         u.setAttribute("width", "100");
    26         document.documentElement.removeAttribute('class');
    27       }
    29     ]]>
    30 </script>
    31 </svg>

mercurial