layout/reftests/svg/dynamic-feImage-01.svg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/dynamic-feImage-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" xmlns:xlink="http://www.w3.org/1999/xlink" onload="m();">
    1.10 +	<title>Testcase for dynamic feImage changes</title>
    1.11 +	<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=455226 -->
    1.12 +	<script>
    1.13 +		function m() {
    1.14 +		var xlinkNS = "http://www.w3.org/1999/xlink";
    1.15 +		document.getElementById("feImage").removeAttributeNS(xlinkNS, "href");
    1.16 +		}
    1.17 +	</script>
    1.18 +
    1.19 +	<defs>
    1.20 +		<filter id="f1" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox"
    1.21 +        	 x="0" y="0" width="1" height="1">
    1.22 +
    1.23 +			<feImage id="feImage"
    1.24 +					 xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAAXNSR0IArs4c6QAAAAxJREFUCNdj+M/AAAADAQEAGN2NsAAAAABJRU5ErkJggg"
    1.25 +					 x="0" y="0" width="100%" height="100%"
    1.26 +                 	 style="color-interpolation-filters:sRGB"/>
    1.27 +		</filter>
    1.28 +	</defs>
    1.29 +	<rect width="100%" height="100%" fill="lime"/>
    1.30 +	<rect width="100%" height="100%" filter="url(#f1)"/>
    1.31 +</svg>

mercurial