From: Matthias Clasen Date: Sun, 12 Feb 2023 03:20:24 +0000 (-0500) Subject: Add a test for mask nodes X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~7^2~14^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c8bfea7aa17efaacee316689b8fa0ec7a6289e7b;p=gtk4.git Add a test for mask nodes --- diff --git a/testsuite/gsk/compare/mask.node b/testsuite/gsk/compare/mask.node new file mode 100644 index 0000000000..19da06e36b --- /dev/null +++ b/testsuite/gsk/compare/mask.node @@ -0,0 +1,20 @@ +mask { + source: container { + color { + color: red; + bounds: 0 0 50 50; + } + color { + color: yellow; + bounds: 50 0 50 50; + } + color { + color: magenta; + bounds: 0 50 100 50; + } + } + mask: color { + color: black; + bounds: 20 20 50 50; + } +} \ No newline at end of file diff --git a/testsuite/gsk/compare/mask.png b/testsuite/gsk/compare/mask.png new file mode 100644 index 0000000000..2dbfa426a9 Binary files /dev/null and b/testsuite/gsk/compare/mask.png differ diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build index 631f4127bb..279991eb8c 100644 --- a/testsuite/gsk/meson.build +++ b/testsuite/gsk/meson.build @@ -54,6 +54,7 @@ compare_render_tests = [ 'inset-shadow-multiple', 'invalid-transform', 'issue-3615', + 'mask', 'nested-rounded-clips', 'opacity_clip', 'opacity-overdraw',