Debian Codegraph @

testsuite/gsk/compare/clip-all-clipped-issue-7044.node

raw
1 /* establish proper bounds for the node */
2 color {
3 bounds: 0 0 200 200;
4 color: black;
5 }
6
7 /* ensure the scissor is set */
8 clip {
9 clip: 0 0 100 100;
10 /* Create a cip that does not intersect the scissor
11 * and will be taken verbatim.
12 * We now have a scissor and a clip that overlap,
13 * but neither contains the other
14 */
15 child: rounded-clip {
16 clip: 90.5 90.5 100 100 / 20;
17 child: container {
18 /* Guarantee the rounded-clip's bounds match
19 * its clip bounds.
20 */
21 color {
22 bounds: 0 0 200 200;
23 color: black;
24 }
25 /* Clip by a region that has these characteristics:
26 * 1. It does not intersect with the scissor above
27 * 2. It is not pixel-aligned, so it can't be
28 * represented with a scissor.
29 * Code should properly detect (1).
30 */
31 clip {
32 clip: 100 100 55.5 55.5;
33 /* Draw a child that triggers "Clipping is broken" */
34 child: linear-gradient {
35 bounds: 0 0 200 200;
36 stops: 0 red, 0.1 green, 0.2 red, 0.3 blue, 0.4 yellow,
37 0.5 blue, 0.6 white, 0.7 purple, 0.8 pink, 0.9 orange, 1.0 red;
38 }
39 }
40 }
41 }
42 }