Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
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 | |
michael@0 | 7 | <title>Testcase for opacity on elements referencing a gradient</title> |
michael@0 | 8 | |
michael@0 | 9 | <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=539165 --> |
michael@0 | 10 | |
michael@0 | 11 | <defs> |
michael@0 | 12 | <linearGradient id="lime" gradientUnits="userSpaceOnUse"> |
michael@0 | 13 | <stop stop-color="lime"/> |
michael@0 | 14 | </linearGradient> |
michael@0 | 15 | <linearGradient id="red" gradientUnits="userSpaceOnUse"> |
michael@0 | 16 | <stop stop-color="red"/> |
michael@0 | 17 | </linearGradient> |
michael@0 | 18 | <linearGradient id="red2" gradientUnits="userSpaceOnUse"> |
michael@0 | 19 | <stop stop-color="red" offset="0%"/> |
michael@0 | 20 | <stop stop-color="red" offset="100%"/> |
michael@0 | 21 | </linearGradient> |
michael@0 | 22 | <linearGradient id="redgreen" gradientUnits="userSpaceOnUse"> |
michael@0 | 23 | <stop stop-color="red" offset="0%"/> |
michael@0 | 24 | <stop stop-color="lime" offset="100%"/> |
michael@0 | 25 | </linearGradient> |
michael@0 | 26 | </defs> |
michael@0 | 27 | |
michael@0 | 28 | <rect width="100%" height="100%" fill="url(#lime)"/> |
michael@0 | 29 | |
michael@0 | 30 | <!-- test 'opacity' --> |
michael@0 | 31 | <rect width="25%" height="100%" fill="red" opacity="1"/> |
michael@0 | 32 | |
michael@0 | 33 | <!-- test 'fill-opacity' --> |
michael@0 | 34 | <rect x="25%" width="25%" height="100%" fill="url(#red)" fill-opacity="0.5"/> |
michael@0 | 35 | |
michael@0 | 36 | <!-- test 'fill-opacity' --> |
michael@0 | 37 | <rect x="50%" width="25%" height="100%" fill="url(#red2)" fill-opacity="0.5"/> |
michael@0 | 38 | |
michael@0 | 39 | <!-- test 'fill-opacity' --> |
michael@0 | 40 | <rect x="75%" width="25%" height="100%" fill="url(#redgreen)" fill-opacity="0"/> |
michael@0 | 41 | |
michael@0 | 42 | </svg> |