summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/reftests/clip/custom-clip-chains.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/wr/wrench/reftests/clip/custom-clip-chains.yaml')
-rw-r--r--gfx/wr/wrench/reftests/clip/custom-clip-chains.yaml62
1 files changed, 62 insertions, 0 deletions
diff --git a/gfx/wr/wrench/reftests/clip/custom-clip-chains.yaml b/gfx/wr/wrench/reftests/clip/custom-clip-chains.yaml
new file mode 100644
index 0000000000..62e2fde8c5
--- /dev/null
+++ b/gfx/wr/wrench/reftests/clip/custom-clip-chains.yaml
@@ -0,0 +1,62 @@
+# This tests a clip chain (clipid=6) that is composed of two clips (clipid=3
+# and clipid=4) with a parent clip chain (composed of two more clips (clipid=1
+# and clipid=2). This effectively tests a "complex" clip chain that includes
+# and is applied to multiple non-hierarchical reference frames as well as
+# having a similarly complicated parent. Each clip is a rounded corner which,
+# when rotated, clips a box with all corners rounded.
+root:
+ items:
+ -
+ bounds: [0, 0, 200, 200]
+ type: stacking-context
+ transform: rotate(180)
+ items:
+ - type: clip
+ id: 10
+ bounds: [0, 0, 200, 200]
+ complex:
+ - rect: [0, 0, 200, 200]
+ radius: {
+ top-left: 20,
+ }
+ - type: clip
+ id: 2
+ bounds: [0, 0, 200, 200]
+ complex:
+ - rect: [0, 0, 200, 200]
+ radius: {
+ top-right: 20,
+ }
+ -
+ bounds: [0, 0, 200, 200]
+ type: stacking-context
+ transform: rotate(-90)
+ items:
+ - type: clip
+ id: 3
+ bounds: [0, 0, 200, 200]
+ complex:
+ - rect: [0, 0, 200, 200]
+ radius: {
+ bottom-left: 20,
+ }
+ - type: clip
+ id: 4
+ bounds: [0, 0, 200, 200]
+ complex:
+ - rect: [0, 0, 200, 200]
+ radius: {
+ top-left: 20,
+ }
+
+ - type: clip-chain
+ id: 5
+ clips: [10, 2]
+ - type: clip-chain
+ id: 6
+ parent: 5
+ clips: [3, 4]
+ - type: rect
+ bounds: [0, 0, 200, 200]
+ color: green
+ clip-and-scroll: [root-scroll-node, 6]