Add a test for mask nodes
authorMatthias Clasen <mclasen@redhat.com>
Sun, 12 Feb 2023 03:20:24 +0000 (22:20 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 12 Feb 2023 13:35:25 +0000 (08:35 -0500)
testsuite/gsk/compare/mask.node [new file with mode: 0644]
testsuite/gsk/compare/mask.png [new file with mode: 0644]
testsuite/gsk/meson.build

diff --git a/testsuite/gsk/compare/mask.node b/testsuite/gsk/compare/mask.node
new file mode 100644 (file)
index 0000000..19da06e
--- /dev/null
@@ -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 (file)
index 0000000..2dbfa42
Binary files /dev/null and b/testsuite/gsk/compare/mask.png differ
index 631f4127bb894ca8c200cf6118cfdddeedcf5313..279991eb8c059c3b7c5c30149917fa60b4e2450c 100644 (file)
@@ -54,6 +54,7 @@ compare_render_tests = [
   'inset-shadow-multiple',
   'invalid-transform',
   'issue-3615',
+  'mask',
   'nested-rounded-clips',
   'opacity_clip',
   'opacity-overdraw',