mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 05:50:10 +00:00
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.
This commit is contained in:
parent
c6eb7fd483
commit
c179013790
14
testsuite/gsk/compare/mask-clipped-inverted-alpha.node
Normal file
14
testsuite/gsk/compare/mask-clipped-inverted-alpha.node
Normal file
@ -0,0 +1,14 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
BIN
testsuite/gsk/compare/mask-clipped-inverted-alpha.png
Normal file
BIN
testsuite/gsk/compare/mask-clipped-inverted-alpha.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 129 B |
@ -65,6 +65,7 @@ compare_render_tests = [
|
||||
'invalid-transform',
|
||||
'issue-3615',
|
||||
'mask',
|
||||
'mask-clipped-inverted-alpha',
|
||||
'mask-modes',
|
||||
'mask-modes-with-alpha',
|
||||
'nested-rounded-clips',
|
||||
|
Loading…
Reference in New Issue
Block a user