Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
This repository was archived by the owner on Oct 9, 2020. It is now read-only.

Bundling of embedded svg corrupts url references #131

@kwesterfeld

Description

@kwesterfeld

We are using an inliner to bundle svg into data-uri based css. When this css is then built using plugin-css, the construct such as this:

fill="url(#a)"
clip-path="url(#b)"

are incorrectly modified to something like this:

fill="url(app/path/a")
etc.

This is because the url handling in plugin-css is prepending the base url/app path in this case. Since these url references are referring to the section of SVG, it would make sense to detect this and avoid making this adjustment.

Pull request on the way to detect url(#, which should be referring to an id vs. absolute path.

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