mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 06:21:14 +00:00
c179013790
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.
15 lines
226 B
Plaintext
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;
|
|
}
|
|
}
|
|
}
|