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"> |
michael@0 | 6 | |
michael@0 | 7 | <title>Test for gradients being positioned correctly within filters</title> |
michael@0 | 8 | <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=797708 --> |
michael@0 | 9 | |
michael@0 | 10 | <style> |
michael@0 | 11 | @font-face { |
michael@0 | 12 | src: url(../fonts/Ahem.ttf); |
michael@0 | 13 | font-family: Ahem; |
michael@0 | 14 | } |
michael@0 | 15 | </style> |
michael@0 | 16 | |
michael@0 | 17 | <linearGradient id="g" gradientUnits="userSpaceOnUse" x1="100" y1="0" x2="300" y2="0"> |
michael@0 | 18 | <stop offset="0" stop-color="red"/> |
michael@0 | 19 | <stop offset="0.5" stop-color="red"/> |
michael@0 | 20 | <stop offset="0.5" stop-color="blue"/> |
michael@0 | 21 | <stop offset="1" stop-color="blue"/> |
michael@0 | 22 | </linearGradient> |
michael@0 | 23 | |
michael@0 | 24 | <filter id="f"> |
michael@0 | 25 | <feMerge> |
michael@0 | 26 | <feMergeNode in="SourceGraphic"/> |
michael@0 | 27 | </feMerge> |
michael@0 | 28 | </filter> |
michael@0 | 29 | |
michael@0 | 30 | <clipPath id="c"> |
michael@0 | 31 | <path d="M 130,70 h 40 v 40 h -40 z |
michael@0 | 32 | M 230,70 h 40 v 40 h -40 z"/> |
michael@0 | 33 | </clipPath> |
michael@0 | 34 | |
michael@0 | 35 | <g style="font: 64px Ahem; fill: url(#g); text-anchor: middle; filter: url(#f); clip-path: url(#c)"> |
michael@0 | 36 | <text x="150" y="100">a</text> |
michael@0 | 37 | <text x="250" y="100">a</text> |
michael@0 | 38 | </g> |
michael@0 | 39 | </svg> |