question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

<svg width='150' height='150' viewBox='0 0 150 150'>
    <defs>
        <rect width='100' height='100' fill='red' id='a'/>
    </defs>
    <rect x='20' y='20' width='100' height='100' fill='green' id='a'/>
    <use xlinkHref='#a'/>
    <rect x='50' y='50' width='100' height='100' fill='black' id='a'/>
</svg>

When there is another node (any path/rect/etc) before <use/> node, <use /> node goes below the last node and this breaks picture layering

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jhamletcommented, Jul 31, 2016

The issue was with xml2js not keeping its children in order. This should be fixed with v0.4.0-beta.2

0reactions
KidsKillacommented, Jul 13, 2016

@jhamlet

I’m aiming for v0.4.0

Cool, thanks!

Do you have a sample SVG file that I can reproduce this with?

The one that is in the topic. It should have black square above the others, but now there’s red one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Is Tagging and Why Should We Do It? - ThoughtCo
Tagging files means to use simple pieces of data, usually no more than one to three words, that describe information on a document, ......
Read more >
How to Use Tags on YouTube: A Step-by-Step Guide
YouTube tags allow your video to be found by people using YouTube search to look for the type of content you're offering. YouTube...
Read more >
Use tags to organize files on Mac - Apple Support
Tags work with all your files and folders, whether you store them on your Mac or keep them in iCloud. A Finder window...
Read more >
The Best Ways to Organize Your Files with Tags and Labels
Then, we'll dive into how to tag your emails, photos, notes, and files, and glance at the benefits of using tags alongside folders....
Read more >
Add tags to your YouTube videos - Google Support
Tags are descriptive keywords you can add to your video to help viewers find your content. ... Use hashtags for YouTube videos &...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found