From c8bfea7aa17efaacee316689b8fa0ec7a6289e7b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 11 Feb 2023 22:20:24 -0500 Subject: [PATCH] Add a test for mask nodes --- testsuite/gsk/compare/mask.node | 20 ++++++++++++++++++++ testsuite/gsk/compare/mask.png | Bin 0 -> 253 bytes testsuite/gsk/meson.build | 1 + 3 files changed, 21 insertions(+) create mode 100644 testsuite/gsk/compare/mask.node create mode 100644 testsuite/gsk/compare/mask.png 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 0000000000000000000000000000000000000000..2dbfa426a9c4f02799b5ae35cd2862952aff7036 GIT binary patch literal 253 zcmeAS@N?(olHy`uVBq!ia0vp^DIm*cDhyf3S5ZBYy&t;ucLK6V- C9#8!M literal 0 HcmV?d00001 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',