diff --git a/testsuite/gsk/compare/opacity-colormatrix-combinations.node b/testsuite/gsk/compare/opacity-colormatrix-combinations.node new file mode 100644 index 0000000000..81319c0272 --- /dev/null +++ b/testsuite/gsk/compare/opacity-colormatrix-combinations.node @@ -0,0 +1,46 @@ +opacity { + opacity: 0.4; + child: color-matrix { + matrix: matrix3d(0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1); + child: color { + bounds: 0 0 50 50; + color: rgb(255,0,0); + } + } +} +opacity { + opacity: 0.4; + child: color-matrix { + matrix: matrix3d(0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1); + child: texture { + bounds: 50 0 50 50; + texture: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAV0lEQVRoge3PAQ3AMAzAsH78Ofck\ +Li26bATJszM7P3BuB3zFSI2RGiM1RmqM1BipMVJjpMZIjZEaIzVGaozUGKkxUmOkxkiNkRojNUZq\ +jNQYqTFSY6TmBQexAmLPVmNqAAAAAElFTkSuQmCC\ +"); + } + } +} +color-matrix { + matrix: matrix3d(0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1); + child: opacity { + opacity: 0.4; + child: color { + bounds: 0 50 50 50; + color: rgb(255,0,0); + } + } +} +color-matrix { + matrix: matrix3d(0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1); + child: opacity { + opacity: 0.4; + child: texture { + bounds: 50 50 50 50; + texture: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAV0lEQVRoge3PAQ3AMAzAsH78Ofck\ +Li26bATJszM7P3BuB3zFSI2RGiM1RmqM1BipMVJjpMZIjZEaIzVGaozUGKkxUmOkxkiNkRojNUZq\ +jNQYqTFSY6TmBQexAmLPVmNqAAAAAElFTkSuQmCC\ +"); + } + } +} diff --git a/testsuite/gsk/compare/opacity-colormatrix-combinations.png b/testsuite/gsk/compare/opacity-colormatrix-combinations.png new file mode 100644 index 0000000000..dfd8610ff8 Binary files /dev/null and b/testsuite/gsk/compare/opacity-colormatrix-combinations.png differ diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build index 7974ab1108..ffc595014f 100644 --- a/testsuite/gsk/meson.build +++ b/testsuite/gsk/meson.build @@ -74,6 +74,7 @@ compare_render_tests = [ 'mask-texture-color-alpha', 'nested-rounded-clips', 'opacity_clip', + 'opacity-colormatrix-combinations', 'opacity-overdraw', 'opacity-overlapping-children', 'outset_shadow_offset_both',