1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# This test ensures that custom clip chains are not affected by the ancestors
# of their clipping nodes. In this case the node, 3, will probably be optimized
# away since its ancestor 2 has a tighter bounding rect. On the other hand, a
# clip chain which includes 3 should only get the rectangle specified by that
# node and not be affected by 2 at all.
---
root:
items:
-
bounds: [25, 25, 50, 50]
"clip-rect": [25, 25, 50, 50]
type: clip
id: 2
-
bounds: [10, 10, 100, 100]
clip-rect: [10, 10, 100, 100]
type: clip
id: 3
"content-size": [800, 1000]
-
bounds: [0, 0, 0, 0]
clip-rect: [0, 0, 0, 0]
type: "clip-chain"
id: 10
clips: [3]
-
bounds: [0, 0, 200, 200]
clip-rect: [0, 0, 200, 200]
clip-chain: 10
type: rect
color: 0 255 0 1
|