summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/reftests/compositor-surface/underlay.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/wr/wrench/reftests/compositor-surface/underlay.yaml')
-rw-r--r--gfx/wr/wrench/reftests/compositor-surface/underlay.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/gfx/wr/wrench/reftests/compositor-surface/underlay.yaml b/gfx/wr/wrench/reftests/compositor-surface/underlay.yaml
new file mode 100644
index 0000000000..11c2b7ebd7
--- /dev/null
+++ b/gfx/wr/wrench/reftests/compositor-surface/underlay.yaml
@@ -0,0 +1,30 @@
+# Verify that we correctly display an underlay style compositor
+# surface when an overlapping translucent compositor surface
+# exists earlier in the display list.
+# Reference image is public-domain - https://en.wikipedia.org/wiki/File:Barn-yuv.png
+---
+root:
+ items:
+ - type: rect
+ bounds: [0, 0, 500, 550]
+ color: white
+ - image: solid-color(255,0,0,128,299,299)
+ bounds: [100, 100, 299, 299]
+ prefer-compositor-surface: true
+ - type: yuv-image
+ format: planar
+ src-y: barn-y.png
+ src-u: barn-u.png
+ src-v: barn-v.png
+ bounds: [100, 100, 299, 299]
+ prefer-compositor-surface: true
+ - text: "Prohibited subpixel AA"
+ origin: 110 380
+ size: 20
+ color: white
+ font: "FreeSans.ttf"
+ - text: "Allowed subpixel AA"
+ origin: 110 480
+ size: 20
+ color: black
+ font: "FreeSans.ttf"