diff options
| author | Eric Biedert <github@ericbiedert.de> | 2024-07-14 16:02:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-14 14:02:50 +0000 |
| commit | ac322e342b4736bea189f5e7ac39561c0e5a3127 (patch) | |
| tree | 746e2b227b4be9d4efd8326cc198c7fa37100f55 /tests | |
| parent | 17ee3df1ba99183fc074e91dfba3e9189dae1c0c (diff) | |
Save and restore graphics state for every frame (#4496)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/issue-4361-transparency-leak.png | bin | 0 -> 3515 bytes | |||
| -rw-r--r-- | tests/suite/visualize/color.typ | 7 |
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 Binary files differnew file mode 100644 index 00000000..4060d43a --- /dev/null +++ b/tests/ref/issue-4361-transparency-leak.png 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) |
