diff options
Diffstat (limited to 'src/css/cascade.nim')
-rw-r--r-- | src/css/cascade.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/css/cascade.nim b/src/css/cascade.nim index 397dda90..c4bdc0c0 100644 --- a/src/css/cascade.nim +++ b/src/css/cascade.nim @@ -314,7 +314,8 @@ proc applyRules(document: Document, ua, user: CSSStylesheet, cachedTree: StyledN styledText.pseudo = pseudo styledParent.children.add(styledText) of PSEUDO_IMAGE: - let content = CSSContent(t: CONTENT_IMAGE, s: "[img]") + let src = Element(styledParent.node).attr("src") + let content = CSSContent(t: CONTENT_IMAGE, s: src) let styledText = styledParent.newStyledReplacement(content) styledText.pseudo = pseudo styledParent.children.add(styledText) |