layout/reftests/svg/foreignObject-02.svg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/foreignObject-02.svg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +<!--
     1.5 +     Any copyright is dedicated to the Public Domain.
     1.6 +     http://creativecommons.org/publicdomain/zero/1.0/
     1.7 +-->
     1.8 +<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
     1.9 +     xmlns:html="http://www.w3.org/1999/xhtml"
    1.10 +     xmlns:xlink="http://www.w3.org/1999/xlink" onload="m();">
    1.11 +  <title>Testing that foreignobject works in filters</title>
    1.12 +  <foreignObject id="fo1" x="50" y="50" width="50" height="50">
    1.13 +    <html:div style="width:100%; height:100%; background:lime;">
    1.14 +    </html:div>
    1.15 +  </foreignObject>
    1.16 +  <foreignObject id="fo2" x="50" y="150" width="50" height="50" filter="url(#f1)">
    1.17 +    <html:div style="width:100%; height:100%; background:lime;">
    1.18 +    </html:div>
    1.19 +  </foreignObject>
    1.20 +  <filter id="f1" x="0" y="0" width="100%" height="100%">
    1.21 +    <feOffset/>
    1.22 +  </filter>
    1.23 +  <script>
    1.24 +		function m() {
    1.25 +		var svgns = "http://www.w3.org/2000/svg";
    1.26 +
    1.27 +		var fo1 = document.getElementById("fo1");
    1.28 +		fo1.setAttribute("x", "150");
    1.29 +
    1.30 +		var fo2 = document.getElementById("fo2");
    1.31 +		fo2.setAttribute("x", "150");
    1.32 +		}
    1.33 +  </script>
    1.34 +</svg>

mercurial