Skip to content

Two suggestions for fixsvgstack.jquery.js  #8

@ianthedev

Description

@ianthedev

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions