Fyrd / caniuse

Raw browser/feature support data from caniuse.com
https://caniuse.com
Creative Commons Attribution 4.0 International
5.64k stars 1.38k forks source link

Add SVG `use` with external reference #3556

Open alejandroiglesias opened 7 years ago

alejandroiglesias commented 7 years ago

It would be good to add this feature since the browser support is variable (no IE or old Safari). How it looks like:

<!-- Reference IN THIS SAME DOCUMENT -->
<svg>
  <use xlink:href="#icon-1"></use>
</svg>

<!-- EXTERNAL reference -->
<svg>
  <use xlink:href="sprite.svg#icon-1"></use>
</svg>

More info:

Ugoku commented 7 years ago

+1

Edge 12 also doesn't support this, according to the svg4everybody polyfill

kfbow commented 6 years ago

Also xlink deprecation: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href.

Herst commented 6 years ago

+1

mehulkar commented 6 years ago

+1. I just tried to look this up because of the xlink:href deprecation :)

GPHemsley commented 2 years ago

Looks like this is now covered by MDN data: https://caniuse.com/mdn-svg_elements_use_xlink_href https://caniuse.com/mdn-svg_elements_use_href

(via mdn/browser-compat-data#1419)

Fyrd commented 2 years ago

I think the MDN data is just for support xlink:href, not specific to external references

GPHemsley commented 2 years ago

I think the MDN data is just for support xlink:href, not specific to external references

I thought <use xlink:href> and <use href> was all this issue was about. I'm not seeing any examples of other forms of external references.

Zearin commented 2 years ago

MDN’s content for SVG is woefully incomplete. Don’t expect it to be as comprehensive or up-to-date for SVG as it is for HTML, CSS, and JS.