image-set-polyfill icon indicating copy to clipboard operation
image-set-polyfill copied to clipboard

Relative paths gets out of context

Open odadoda opened this issue 9 years ago • 3 comments

I got relative paths to fonts and some svg's in the css. When the polyfill kicks in, it copies the css and places it inline in the document, where all the relative paths is out of the original context and can't find the resources.

odadoda avatar May 10 '16 09:05 odadoda

@odadoda Hi! This is sad. At this case simple regex is not enough, will fix that soon.

wtfil avatar May 10 '16 09:05 wtfil

I guess one solution would be to prepend the path to the css file into all "url(...)" values.

odadoda avatar May 10 '16 10:05 odadoda

yeah, it could work, but ideally it should not touch the @font-face and svg at all:)

wtfil avatar May 10 '16 11:05 wtfil