Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <!-- |
michael@0 | 2 | Any copyright is dedicated to the Public Domain. |
michael@0 | 3 | http://creativecommons.org/publicdomain/zero/1.0/ |
michael@0 | 4 | --> |
michael@0 | 5 | <svg xmlns="http://www.w3.org/2000/svg" version="1.1" |
michael@0 | 6 | xmlns:html="http://www.w3.org/1999/xhtml" |
michael@0 | 7 | xmlns:xlink="http://www.w3.org/1999/xlink" onload="m();"> |
michael@0 | 8 | <title>Testing that foreignobject works in filters</title> |
michael@0 | 9 | <foreignObject id="fo1" x="50" y="50" width="50" height="50"> |
michael@0 | 10 | <html:div style="width:100%; height:100%; background:lime;"> |
michael@0 | 11 | </html:div> |
michael@0 | 12 | </foreignObject> |
michael@0 | 13 | <foreignObject id="fo2" x="50" y="150" width="50" height="50" filter="url(#f1)"> |
michael@0 | 14 | <html:div style="width:100%; height:100%; background:lime;"> |
michael@0 | 15 | </html:div> |
michael@0 | 16 | </foreignObject> |
michael@0 | 17 | <filter id="f1" x="0" y="0" width="100%" height="100%"> |
michael@0 | 18 | <feOffset/> |
michael@0 | 19 | </filter> |
michael@0 | 20 | <script> |
michael@0 | 21 | function m() { |
michael@0 | 22 | var svgns = "http://www.w3.org/2000/svg"; |
michael@0 | 23 | |
michael@0 | 24 | var fo1 = document.getElementById("fo1"); |
michael@0 | 25 | fo1.setAttribute("x", "150"); |
michael@0 | 26 | |
michael@0 | 27 | var fo2 = document.getElementById("fo2"); |
michael@0 | 28 | fo2.setAttribute("x", "150"); |
michael@0 | 29 | } |
michael@0 | 30 | </script> |
michael@0 | 31 | </svg> |