Created
March 16, 2012 20:52
-
-
Save basecode/2052614 to your computer and use it in GitHub Desktop.
Webkit SVG Bugs: <use> + <filter>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg style="border:1px solid #000;" width="240" height="200"> | |
<defs> | |
<symbol id="imageRef"> | |
<image xlink:href="http://www.howtocleanstuff.net/wp-content/uploads/boat.jpg" width="100%" height="100%" /> | |
</symbol> | |
<filter id="filterRef" height="10" width="10" x="-5" y="-5"> | |
<feGaussianBlur stdDeviation="1"></feGaussianBlur> | |
</filter> | |
</defs> | |
<!-- reuse image reference and apply a blur filter //--> | |
<use xlink:href="#imageRef" filter="url(#filterRef)" width="200" height="200" /> | |
</svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg style="border:1px solid #000;" width="240" height="200"> | |
<defs> | |
<symbol id="imageRef"> | |
<image xlink:href="http://www.howtocleanstuff.net/wp-content/uploads/boat.jpg" width="100%" height="100%" /> | |
</symbol> | |
<filter id="filterRef" height="10" width="10" x="-5" y="-5"> | |
<feGaussianBlur stdDeviation="1"></feGaussianBlur> | |
</filter> | |
</defs> | |
<!-- wrap use element by a group-element //--> | |
<g filter="url(#filterRef)"> | |
<use xlink:href="#imageRef" x="20" y="0" width="200" height="200" /> | |
</g> | |
</svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment