layout/reftests/svg/foreignObject-02.svg

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     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" version="1.1"
     6      xmlns:html="http://www.w3.org/1999/xhtml"
     7      xmlns:xlink="http://www.w3.org/1999/xlink" onload="m();">
     8   <title>Testing that foreignobject works in filters</title>
     9   <foreignObject id="fo1" x="50" y="50" width="50" height="50">
    10     <html:div style="width:100%; height:100%; background:lime;">
    11     </html:div>
    12   </foreignObject>
    13   <foreignObject id="fo2" x="50" y="150" width="50" height="50" filter="url(#f1)">
    14     <html:div style="width:100%; height:100%; background:lime;">
    15     </html:div>
    16   </foreignObject>
    17   <filter id="f1" x="0" y="0" width="100%" height="100%">
    18     <feOffset/>
    19   </filter>
    20   <script>
    21 		function m() {
    22 		var svgns = "http://www.w3.org/2000/svg";
    24 		var fo1 = document.getElementById("fo1");
    25 		fo1.setAttribute("x", "150");
    27 		var fo2 = document.getElementById("fo2");
    28 		fo2.setAttribute("x", "150");
    29 		}
    30   </script>
    31 </svg>

mercurial