paint-order-02.svg 884 B

1234567891011121314151617181920212223242526
  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>Test that the paint-order property works</title>
  7. <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=828805 -->
  8. <linearGradient id="gold">
  9. <stop stop-color="gold"/>
  10. </linearGradient>
  11. <linearGradient id="black">
  12. <stop stop-color="black"/>
  13. </linearGradient>
  14. <g fill="url(#gold)" stroke="url(#black)" stroke-width="8" paint-order="stroke">
  15. <ellipse cx="50" cy="50" rx="40" ry="20"/>
  16. <path d="M 50,100 h 40 v 30 z"/>
  17. <polygon points="50,150 90,150 90,180"/>
  18. <polyline points="50,200 90,200 90,230"/>
  19. <rect x="50" y="250" width="80" height="30" r="16"/>
  20. <text x="50" y="350" font-size="80" stroke-width="4">hello <tspan paint-order="normal">there</tspan></text>
  21. </g>
  22. </svg>