QGIS/tests/testdata/svg/no_viewbox.svg
Nyall Dawson 0864e0a39a When an svg image has no viewbox tags, try to take the width/height
attribute as a fallback for these

Allows the aspect ratio of svgs without a viewbox to be determined,
resulting in correct rendering as svg markers
2020-08-19 14:24:41 +10:00

50 lines
1.7 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg13"
height="6.3584666mm"
width="1.3292667mm"
version="1.0">
<metadata
id="metadata17">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs3">
<pattern
y="0"
x="0"
height="6"
width="6"
patternUnits="userSpaceOnUse"
id="EMFhbasepattern" />
</defs>
<path
id="path5"
d=" M 0.66666667,0 L 0.66666667,24 z "
style="fill:#ffffff;fill-rule:nonzero;fill-opacity:1;stroke:none;" />
<path
id="path7"
d=" M 0.66666667,0 L 0.66666667,24 "
style="fill:none;stroke:#000000;stroke-width:0.66666669px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;" />
<path
id="path9"
d=" M 0.66666667,8 C 3,8 5,9.6666667 5,12 C 5,14.333333 3,16 0.66666667,16 "
style="fill:none;stroke:#000000;stroke-width:0.66666669px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;" />
<path
id="path11"
d=" M 0.66666667,12 L 5,12 "
style="fill:none;stroke:#000000;stroke-width:0.66666669px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;" />
</svg>