gtk/testsuite/gsk/compare/shadow-offset-to-outside-clip.node
Benjamin Otte e1bae384f0 testsuite: Add a shadow test
This test tests that shadows that are offset to outside the clip region
but where the blur goes back into the clip region get correctly drawn
and not optimized away.

To view what the test actually draws, remove at least the color-matrix
- it's only used so the blurring algorithm doesn't cause different
results - and maybe also the clip node.
2023-12-26 05:03:24 +01:00

14 lines
356 B
Plaintext

color-matrix {
matrix: matrix3d(256, 0, 0, 0, 0, 256, 0, 0, 0, 0, 256, 0, 0, 0, 0, 256);
child: clip {
clip: -52 44 80 80;
child: shadow {
shadows: rgb(255,0,0) 65 0 17, rgb(255,0,0) -65 0 17, rgb(255,0,0) 0 -65 17, rgb(255,0,0) 0 65 17;
child: color {
bounds: -37 59 50 50;
color: rgb(0,0,255);
}
}
}
}