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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/dynamic-text-03.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 +		}
    1.20 +	</script>
    1.21 +	<filter id="shadow" filterUnits="objectBoundingBox">
    1.22 +		<feGaussianBlur in="SourceAlpha" stdDeviation="5"/>
    1.23 +	</filter>
    1.24 +	<g filter="url(#shadow)" >
    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 +	</g>
    1.31 +</svg>

mercurial