-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#493 Test applying styles to external SVG linked via img tag.
Copy the class attribute from img tag to svg tag so it can be better targetted.
- Loading branch information
Showing
4 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
Binary file added
BIN
+2.38 KB
...pdf-examples/src/main/resources/visualtest/expected/issue-493-svg-styles-linked-image.pdf
Binary file not shown.
29 changes: 29 additions & 0 deletions
29
...ltopdf-examples/src/main/resources/visualtest/html/issue-493-svg-styles-linked-image.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<html> | ||
<head> | ||
<style> | ||
@page { | ||
size: 200px 500px; | ||
margin: 0; | ||
} | ||
img { | ||
display: block; | ||
} | ||
svg.redish circle { | ||
fill: rgb(255,0,0) !important; | ||
} | ||
.greenish > circle { | ||
fill: rgb(0,255,0) !important; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<!-- Reference blue circle --> | ||
<img src="../../demos/images/circle.svg" alt="Circle" /> | ||
|
||
<!-- Red circle --> | ||
<img class="redish" src="../../demos/images/circle.svg" alt="Circle" /> | ||
|
||
<!-- Small green circle --> | ||
<img height="80" class="greenish" src="../../demos/images/circle.svg" alt="Circle" /> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters