gtk/testsuite/gsk/compare/mask-clipped-inverted-alpha.node
Benjamin Otte c179013790 testsuite: Add a test for mask out of bounds effects
Inverted alpha masks have an effect on the source, even if the mask
doesn't cover the source at all - or worse, is completely clipped out.

The GL renderer handles this fine, but Cairo and Vulkan had
optimizations that got this wrong.
2023-07-03 22:02:44 +02:00

15 lines
226 B
Plaintext

clip {
clip: 0 0 40 40;
child: mask {
mode: inverted-alpha;
source: color {
bounds: 0 0 100 100;
color: rebeccapurple;
}
mask: color {
bounds: 40 40 60 60;
color: black;
}
}
}