summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/reftests/transforms/perspective-surface-scale.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/wr/wrench/reftests/transforms/perspective-surface-scale.yaml')
-rw-r--r--gfx/wr/wrench/reftests/transforms/perspective-surface-scale.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/gfx/wr/wrench/reftests/transforms/perspective-surface-scale.yaml b/gfx/wr/wrench/reftests/transforms/perspective-surface-scale.yaml
new file mode 100644
index 0000000000..6888f91c7e
--- /dev/null
+++ b/gfx/wr/wrench/reftests/transforms/perspective-surface-scale.yaml
@@ -0,0 +1,14 @@
+# Verify that we select a reasonable scale factor for perspective surfaces that don't
+# have a requested scale factor supplied by the caller (based on projected screen rect)
+root:
+ items:
+ - type: "stacking-context"
+ perspective: 1000
+ transform-style: preserve-3d
+ items:
+ - type: "stacking-context"
+ transform-origin: 175 175
+ transform: rotate-x(-20) rotate-y(20)
+ items:
+ - image: checkerboard(2, 22, 16)
+ bounds: [0, 0, 350, 350]