summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/issue-4361-transparency-leak.pngbin0 -> 3515 bytes
-rw-r--r--tests/suite/visualize/color.typ7
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/ref/issue-4361-transparency-leak.png b/tests/ref/issue-4361-transparency-leak.png
new file mode 100644
index 00000000..4060d43a
--- /dev/null
+++ b/tests/ref/issue-4361-transparency-leak.png
Binary files differ
diff --git a/tests/suite/visualize/color.typ b/tests/suite/visualize/color.typ
index 45000ab2..bc8f8be5 100644
--- a/tests/suite/visualize/color.typ
+++ b/tests/suite/visualize/color.typ
@@ -333,3 +333,10 @@
--- issue-color-mix-luma ---
// When mixing luma colors, we accidentally used the wrong component.
#rect(fill: gradient.linear(black, silver, space: luma))
+
+--- issue-4361-transparency-leak ---
+// Ensure that transparency doesn't leak from shapes to images in PDF. The PNG
+// test doesn't validate it, but at least we can discover regressions on the PDF
+// output with a PDF comparison script.
+#rect(fill: red.transparentize(50%))
+#image("/assets/images/tiger.jpg", width: 45pt)