Debian Codegraph @

testsuite/gsk/compare/offscreen-pixel-alignment-nocairo.node

raw
1 /* ensure the size of this test */
2 color {
3 bounds: 0 0 50 50;
4 color: black;
5 }
6 clip {
7 /* Use a clip that isn't pixel-aligned.
8 Use 2 numbers that divide 255 so the expected pixel
9 doesn't cause rounding issues. */
10 clip: 3.333333 3.4 43 43;
11 /* Use a shadow node to force an offscreen */
12 child: shadow {
13 shadows: yellow 1 0;
14 /* Generate a checkerboard pattern with 1x1 tiles.
15 It is very obvious when those don't get pixel-aligned. */
16 child: repeat {
17 /* Make sure the bounds extend beyond the clip, so no
18 antialiasing artifacts are caused by the pattern. */
19 bounds: 0 0 50 50;
20 child: container {
21 color {
22 color: red;
23 bounds: 0 0 1 1;
24 }
25 color {
26 color: red;
27 bounds: 1 1 1 1;
28 }
29 }
30 }
31 }
32 }