Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
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 | viewBox="0 0 100 100" preserveAspectRatio="none"> |
michael@0 | 7 | <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=946529 --> |
michael@0 | 8 | <title>Test for gradientTransform with scientific notation</title> |
michael@0 | 9 | <desc> |
michael@0 | 10 | Creates a horizontal linear gradient when the left half is red and the right |
michael@0 | 11 | half is green and with a width just over twice the width of the rectangle. |
michael@0 | 12 | |
michael@0 | 13 | Then a gradientTransform using exponential notation shifts the gradient to |
michael@0 | 14 | the left so that only the red part shows. |
michael@0 | 15 | </desc> |
michael@0 | 16 | <defs> |
michael@0 | 17 | <linearGradient id="grad" |
michael@0 | 18 | gradientUnits="userSpaceOnUse" |
michael@0 | 19 | gradientTransform="translate(-1.1e2 0)" |
michael@0 | 20 | x1="0" y1="0" x2="210" y2="0"> |
michael@0 | 21 | <stop stop-color="red" offset="0"/> |
michael@0 | 22 | <stop stop-color="red" offset="0.5"/> |
michael@0 | 23 | <stop stop-color="lime" offset="0.5"/> |
michael@0 | 24 | <stop stop-color="lime" offset="1"/> |
michael@0 | 25 | </linearGradient> |
michael@0 | 26 | </defs> |
michael@0 | 27 | <rect width="100" height="100" fill="url(#grad) orange"/> |
michael@0 | 28 | </svg> |