Debian Codegraph @

testsuite/gsk/compare/fill-subpixel-shift-nocairo.node

raw
1 color {
2 color: black;
3 }
4
5 /* Since 1/32 is 0.03123, a shift of 0.01 gives us the
6 * subpixel position 0, so we should get a single pixel
7 * with #ff0000. Without dx/dy, the rendering leaks
8 * into the next pixel.
9 */
10 transform {
11 transform: translate(0.01, 0);
12 child: fill "f" {
13 path: "M10 10 h 1 v 1 h -1 z";
14 child: color {
15 color: #ff0000;
16 }
17 }
18 }
19
20 /* This node is reusing the same path and the same subpixel
21 * position, so it should reuse the cached image from the
22 * first node.
23 */
24 transform {
25 transform: translate(0.00, 1);
26 child: "f";
27 }