text-gradient-03.svg 725 B

1234567891011121314151617181920212223
  1. <!--
  2. Any copyright is dedicated to the Public Domain.
  3. http://creativecommons.org/publicdomain/zero/1.0/
  4. -->
  5. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  6. <title>Testcase for gradient on text</title>
  7. <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=611975 -->
  8. <defs>
  9. <linearGradient id="grad" x1="0" y1="-0.1" x2="0" y2="1" gradientUnits="objectBoundingBox">
  10. <stop stop-color="red" offset="-10%"/>
  11. <stop stop-color="lime" offset="0%"/>
  12. </linearGradient>
  13. </defs>
  14. <g fill="lime">
  15. <rect width="100%" height="100%"/>
  16. <text x="100" y="100" stroke-width="5" stroke="url(#grad)" font-size="80px">SHOULD NOT SEE THIS</text>
  17. </g>
  18. </svg>