Opened 2 weeks ago

Last modified 2 hours ago

#24793 reopened enhancement

Boundaries of SVG support — at Version 1

Reported by: Kilkenni Owned by: team
Priority: normal Milestone: 26.07
Component: Core Version:
Keywords: svg Cc:

Description (last modified by Kilkenni)

While working on some icons, I've found that certain SVG features do not display properly in JOSM. Specifically, the paint-order directive described in MDN https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/paint-order is ignored.

Afaik, it is a part of the SVG2 standard, but it's quite established at this point and has been supported by modern browsers for 5+ years. Is this a problem with the SVG engine in JOSM?

If it is, it would be useful to mention this in JOSM wiki (for example, here https://josm.openstreetmap.de/wiki/Styles#Icons), pointing out that SVG2 icons are not supported.

Change History (2)

by Kilkenni, 2 weeks ago

Attachment: 2026-07-07_14-52-09.png added

Example of an icon using paint-order directive in its SVG. Other icons nearby do not use paint-order.

comment:1 by Kilkenni, 2 weeks ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.