Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Y offset of nested SVG not taken into account #31

Closed
don-vip opened this issue Oct 14, 2018 · 0 comments
Closed

Y offset of nested SVG not taken into account #31

don-vip opened this issue Oct 14, 2018 · 0 comments

Comments

@don-vip
Copy link
Contributor

don-vip commented Oct 14, 2018

When loading the attached SVG file svg_bug_30.zip we face the following display error (after I fixed #29):

svg_bug

The expected display is:
expected

The SVG is defined as follows:

<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="300" height="480" viewBox="0 0 300 480">
	<rect x="140" y="0" width="20" style="fill:#f5f5f5;stroke:#000000;" id="pole" height="480"/>
	<svg version="1.1" id="Nederlands_verkeersbord_C3" height="300" width="300" viewBox="0 0 300 300" y="10" preserveAspectRatio="xMidYMid meet">
		<g>
                    <!-- -->
		</g>
	</svg>
	<svg version="1.1" id="Nederlands_verkeersbord_OB54" height="150" width="300" viewBox="0 0 300 150" y="310" preserveAspectRatio="xMidYMid meet">
		<g>
                    <!-- -->
		</g>
	</svg>
</svg>

It seems the y=10 and y=310 attributes of nested svg elements are not taken into account.

don-vip added a commit to don-vip/svgSalamander that referenced this issue Oct 14, 2018
simon04 pushed a commit to JOSM/josm that referenced this issue Oct 14, 2018
floscher pushed a commit to floscher/josm that referenced this issue Oct 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant