summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/reftests/clip/clip-2d-z-rotations.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/wr/wrench/reftests/clip/clip-2d-z-rotations.yaml')
-rw-r--r--gfx/wr/wrench/reftests/clip/clip-2d-z-rotations.yaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/gfx/wr/wrench/reftests/clip/clip-2d-z-rotations.yaml b/gfx/wr/wrench/reftests/clip/clip-2d-z-rotations.yaml
new file mode 100644
index 0000000000..6c2c7a11e2
--- /dev/null
+++ b/gfx/wr/wrench/reftests/clip/clip-2d-z-rotations.yaml
@@ -0,0 +1,22 @@
+# Ensure that we correctly handle clips that are 2d axis-aligned but
+# fiddle with the z-coordinate of the primitive without preserve-3d
+---
+root:
+ items:
+ - type: stacking-context
+ transform: rotate-x(45) rotate-z(45) translate(200, 200)
+ transform-origin: 100 100
+ items:
+ - type: stacking-context
+ transform: rotate-z(-45) rotate-y(45) translate(20, 0)
+ transform-origin: 100 100
+ items:
+ - type: clip
+ id: 3
+ complex:
+ - rect: [0, 0, 200, 100]
+ radius: 16
+ - bounds: [0, 0, 200, 100]
+ type: rect
+ color: red
+ clip-chain: [3]