SVG-Stacker icon indicating copy to clipboard operation
SVG-Stacker copied to clipboard

Two suggestions for fixsvgstack.jquery.js

Open ianthedev opened this issue 9 years ago • 0 comments

Thanks for the great pollyfill fixsvgstack.jquery.js, which solved the issue of SVG used via CSS background image on iOS for me.

Here are two suggestions:

  1. Can we make it able to translate the relative path in external CSS files so that it could recognize css and images folders' hierarchies? Currently, if the value of the background-image property is background-image: url(../images/stack.svg#icon-1);, I have to manually delete the ../ and write the value of the content property as content: "images/stack.svg#icon-1";. Although it's not a big issue, it's good to be able to keep the code of the paths the same so that the code looks more consistent and easier to maintain and update.
  2. Currently, it does not work for CSS generated content ::before and ::after. Can we make it work for them?

ianthedev avatar Sep 04 '16 08:09 ianthedev