gtk/testsuite/gsk/compare/scaled-texture-scale-clip-nocairo.node
Benjamin Otte 1afc7a9210 testsuite: Add a test for scaled texture clipping
This tests that the result is suitably clipped for doing linear
blending - the rightmost green pixel that is technically offscreen
is blending into the red pixel and turning the test yellow.

Cairo gets this wrong for some reason I didn't investigate.
2024-02-14 20:11:30 +01:00

17 lines
428 B
Plaintext

clip {
clip: 35 1 2 2;
child: color-matrix {
matrix: matrix3d(1000, 0, 0, 0, 0, 1000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
child: transform {
transform: scale(8);
child: texture-scale {
bounds: 0 0 10 10;
filter: nearest;
texture: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAABCAYAAAD0In+KAAAAEUlEQVQImWP4z8Dwn+E/w38AEPgD\
/V+dao0AAAAASUVORK5CYII=\
");
}
}
}
}