1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/gradient-transform-01.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +<!-- 1.5 + Any copyright is dedicated to the Public Domain. 1.6 + http://creativecommons.org/publicdomain/zero/1.0/ 1.7 +--> 1.8 +<svg xmlns="http://www.w3.org/2000/svg" version="1.1" 1.9 + viewBox="0 0 100 100" preserveAspectRatio="none"> 1.10 + <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=946529 --> 1.11 + <title>Test for gradientTransform with scientific notation</title> 1.12 + <desc> 1.13 + Creates a horizontal linear gradient when the left half is red and the right 1.14 + half is green and with a width just over twice the width of the rectangle. 1.15 + 1.16 + Then a gradientTransform using exponential notation shifts the gradient to 1.17 + the left so that only the red part shows. 1.18 + </desc> 1.19 + <defs> 1.20 + <linearGradient id="grad" 1.21 + gradientUnits="userSpaceOnUse" 1.22 + gradientTransform="translate(-1.1e2 0)" 1.23 + x1="0" y1="0" x2="210" y2="0"> 1.24 + <stop stop-color="red" offset="0"/> 1.25 + <stop stop-color="red" offset="0.5"/> 1.26 + <stop stop-color="lime" offset="0.5"/> 1.27 + <stop stop-color="lime" offset="1"/> 1.28 + </linearGradient> 1.29 + </defs> 1.30 + <rect width="100" height="100" fill="url(#grad) orange"/> 1.31 +</svg>