| 1 | <!-- Test taken from the resvg test suite: |
| 2 | |
| 3 | The MIT License (MIT) |
| 4 | |
| 5 | Copyright (c) 2018 Reizner Evgeniy |
| 6 | |
| 7 | Permission is hereby granted, free of charge, to any person obtaining a copy |
| 8 | of this software and associated documentation files (the "Software"), to deal |
| 9 | in the Software without restriction, including without limitation the rights |
| 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 11 | copies of the Software, and to permit persons to whom the Software is |
| 12 | furnished to do so, subject to the following conditions: |
| 13 | |
| 14 | The above copyright notice and this permission notice shall be included in all |
| 15 | copies or substantial portions of the Software. |
| 16 | |
| 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 23 | SOFTWARE. --> |
| 24 | <svg id="svg1" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"> |
| 25 | <title>color-interpolation-filters=sRGB</title> |
| 26 | |
| 27 | <filter id="filter1" filterUnits="userSpaceOnUse" width="200" height="200"> |
| 28 | <feGaussianBlur in="SourceGraphic" stdDeviation="1" |
| 29 | color-interpolation-filters="sRGB" result="blur1"/> |
| 30 | |
| 31 | <feGaussianBlur in="SourceGraphic" stdDeviation="1" |
| 32 | color-interpolation-filters="linearRGB"/> |
| 33 | <feOffset dx="40" dy="40" result="blur2"/> |
| 34 | |
| 35 | <feMerge color-interpolation-filters="sRGB"> |
| 36 | <feMergeNode in="blur1"/> |
| 37 | <feMergeNode in="blur2"/> |
| 38 | </feMerge> |
| 39 | </filter> |
| 40 | <g id="g1" filter="url(#filter1)"> |
| 41 | <rect id="rect1" x="40" y="40" width="40" height="40" fill="yellow"/> |
| 42 | <rect id="rect2" x="60" y="60" width="40" height="40" fill="blue"/> |
| 43 | </g> |
| 44 | |
| 45 | <!-- image frame --> |
| 46 | <rect id="frame" x="1" y="1" width="198" height="198" fill="none" stroke="black"/> |
| 47 | </svg> |