diff --git a/echosvg-transcoder/src/main/java/io/sf/carte/echosvg/transcoder/util/CSSTranscodingHelper.java b/echosvg-transcoder/src/main/java/io/sf/carte/echosvg/transcoder/util/CSSTranscodingHelper.java index 914b5bcc7..64f159489 100644 --- a/echosvg-transcoder/src/main/java/io/sf/carte/echosvg/transcoder/util/CSSTranscodingHelper.java +++ b/echosvg-transcoder/src/main/java/io/sf/carte/echosvg/transcoder/util/CSSTranscodingHelper.java @@ -774,7 +774,8 @@ private void transcodeDOMDocument(DOMDocument document, TranscoderOutput output, String conEnc = purl.getContentEncoding(); Reader userRe = AgentUtil.inputStreamToReader(is, conType, conEnc, StandardCharsets.UTF_8); - ((CSSStyleSheetFactory) document.getImplementation()).setUserStyleSheet(userRe); + ((CSSStyleSheetFactory) document.getImplementation()) + .setUserStyleSheet(purl.getPostConnectionURL(), userRe); } }