layout/reftests/svg/dynamic-textPath-03.svg

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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" id="p1">
     8   <title>Test for changes to the IDs in the document causing textPath references to update</title>
    10   <defs>
    11     <path id="p1" d="M 100,100 h 200"/>
    12   </defs>
    14   <text style="16px sans-serif"><textPath xlink:href="#p1">Hello</textPath></text>
    16   <script>
    17     document.addEventListener("MozReftestInvalidate", doTest, false);
    18     setTimeout(doTest, 4000); // fallback for running outside reftest
    20     function doTest() {
    21       document.documentElement.removeAttribute("id");
    22       document.documentElement.removeAttribute("class");
    23     }
    24   </script>
    25 </svg>

mercurial