1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/dynamic-text-01.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +<?xml version="1.0"?> 1.5 +<!-- 1.6 + Any copyright is dedicated to the Public Domain. 1.7 + http://creativecommons.org/publicdomain/zero/1.0/ 1.8 +--> 1.9 +<svg version="1.1" xmlns="http://www.w3.org/2000/svg" onload="m();"> 1.10 + <title>Testcase for dynamic text changes</title> 1.11 + <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=423998 --> 1.12 + <script> 1.13 + function m() { 1.14 + document.getElementById("text1").firstChild.nodeValue = "Test1"; 1.15 + document.getElementById("text2").setAttribute("x", "200"); 1.16 + document.getElementById("text3").setAttribute("font-size", "50"); 1.17 + document.getElementById("text4").setAttribute("font-size", "50"); 1.18 + document.getElementById("text5").setAttribute("transform", "translate(50,0)"); 1.19 + document.getElementById("text6").removeAttribute("filter"); 1.20 + } 1.21 + </script> 1.22 + <filter id="shadow" filterUnits="objectBoundingBox"> 1.23 + <feGaussianBlur in="SourceAlpha" stdDeviation="5"/> 1.24 + </filter> 1.25 + <text id="text1" x="50" y="100" font-size="50"> </text> 1.26 + <text id="text2" x="0" y="100" font-size="50">Test2</text> 1.27 + <text id="text3" x="50" y="200" font-size="5">Test3</text> 1.28 + <text id="text4" x="200" y="200" font-size="100">Test4</text> 1.29 + <text id="text5" x="0" y="300" font-size="50">Test5</text> 1.30 + <text id="text6" x="200" y="300" filter="url(#shadow)" font-size="50">Test6</text> 1.31 +</svg>