use-localRef-fill-01.svg 884 B

1234567891011121314151617181920212223242526
  1. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  2. <title>Testcase for fill linked to local-ref URL</title>
  3. <defs>
  4. <linearGradient id="gradient1">
  5. <stop offset="0%" stop-color="blue"/>
  6. <stop offset="100%" stop-color="blue"/>
  7. </linearGradient>
  8. <linearGradient id="gradient2">
  9. <stop offset="0%" stop-color="white"/>
  10. <stop offset="100%" stop-color="blue"/>
  11. </linearGradient>
  12. <linearGradient id="gradient3">
  13. <stop offset="0%" stop-color="white"/>
  14. <stop offset="100%" stop-color="blue"/>
  15. </linearGradient>
  16. </defs>
  17. <style>
  18. #fill3 {
  19. fill: url(#gradient3);
  20. }
  21. </style>
  22. <use xlink:href="use-localRef-fill-resource.svg#fill1"/>
  23. <use xlink:href="use-localRef-fill-resource.svg#fill2" fill="url(#gradient2)"/>
  24. <use xlink:href="use-localRef-fill-resource.svg#fill3"/>
  25. </svg>