radialGradient-basic-02.svg 654 B

123456789101112131415161718192021
  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" >
  6. <title>Testcase for gradient</title>
  7. <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=368840 -->
  8. <defs>
  9. <!-- One stop, like fill = stop-color -->
  10. <radialGradient id="onestop" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0">
  11. <stop stop-color="lime" offset="1"/>
  12. </radialGradient>
  13. </defs>
  14. <rect x="0%" y="0%" width="100%" height="100%" fill="red"/>
  15. <rect x="0%" y="0%" width="100%" height="100%" fill="url(#onestop)"/>
  16. </svg>