Used symbols won't show in webbrowser due missing attribute.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
Martin Owens |
Bug Description
I made a symbol out of a group, and then used that symbol on a few places in an svg document.
When viewing the document in a webbrowser(I tried firefox and chrome), the use elements couldn't be viewed.
I tried looking at other examples of the use-element, because, perhaps, it wasn't supported yet by those browsers. When I found examples it was obvious the browsers did support it. However, the difference between my files and the examples was that the symbols in the examples had the attribute/style 'overflow' set to 'visible'.
Doing that to my own symbols resulted in the use elements becoming visible in the webbrowser.
Maybe it's an idea to append 'overflow:visible' automatically to symbols as standard behaviour?
Related branches
Changed in inkscape: | |
assignee: | nobody → Martin Owens (doctormo) |
status: | Confirmed → Fix Committed |
See also <http:// wiki.inkscape. org/wiki/ index.php/ SymbolsDialog# Bugs.2FIssues>
<quote>
- Inkscape gives the <use> element linking to a symbols a width and height of 1. This is incorrect and leads to rendering errors in other SVG renderers. Width and height (as well as x and y) should not be set unless explicitly given. This needs to be fixed. A work-around is to set overflow="visible" in a <symbol>.
</quote>