Skip to content

Commit 4693ea9

Browse files
author
p12
committed
images: Don't add interactive style to SVG images
<img>, not <object> tag must be used within wiki. We can't use <object> tag, because it doesn't support image-maps, which are needed because native SVG linking support isn't adequate for our needs. SVG images within <img> tags lose all interactive features.
1 parent f0971c7 commit 4693ea9

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

images/fix_svg.xsl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@
1818
</xsl:copy>
1919
</xsl:template>
2020

21-
<xsl:template match="/svg:svg">
22-
<xsl:copy>
23-
<xsl:apply-templates select="node()|@*"/>
24-
<style>
25-
.node:hover > a:link polygon {
26-
fill: #eeeeff;
27-
}</style>
28-
</xsl:copy>
29-
</xsl:template>
30-
3121
<xsl:template match="/svg:svg/@width">
3222
<xsl:attribute name="width">
3323
<xsl:value-of select="str:replace(.,'pt','px')"/>

0 commit comments

Comments
 (0)