Bug 1474294 - Add reftest for a box-shadow in perspective transform without preserve-3d. r=kvark
authorAlexis Beingessner <a.beingessner@gmail.com>
Fri, 07 Jun 2019 14:40:30 +0000
changeset 477852 b50cc27685799e82400e75b7823efb90b4705808
parent 477851 a0812921d7c2c465857a65a11cbf17ec6617d007
child 477853 894a44c472727258338f2d013243c9b821a62686
push id36125
push userapavel@mozilla.com
push dateFri, 07 Jun 2019 22:00:07 +0000
treeherdermozilla-central@d820bbb356aa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskvark
bugs1474294
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1474294 - Add reftest for a box-shadow in perspective transform without preserve-3d. r=kvark Differential Revision: https://phabricator.services.mozilla.com/D30980
gfx/wr/wrench/reftests/transforms/perspective-box-shadow-ref.yaml
gfx/wr/wrench/reftests/transforms/perspective-box-shadow.yaml
gfx/wr/wrench/reftests/transforms/reftest.list
new file mode 100644
--- /dev/null
+++ b/gfx/wr/wrench/reftests/transforms/perspective-box-shadow-ref.yaml
@@ -0,0 +1,24 @@
+---
+root:
+  items:
+    -
+      type: "stacking-context"
+      transform-style: "preserve-3d"
+      items:
+        -
+          type: "reference-frame"
+          transform: [1, 0, 0, 0, -0.20399817824363708, 0.05275486409664154, 0.9659258127212524, -0.0008049382013268769, -0.05466114357113838, -1.0211405754089355, 0.258819043636322, -0.00021568253578152508, 52.22355651855469, 242.49476623535156, -247.27700805664063, 1.206064224243164]
+          items:
+            -
+              type: "stacking-context"
+              items:
+                  -
+                    type: "box-shadow"
+                    bounds: [30, 0, 507, 512]
+                    box-bounds: [30, 0, 507, 512]
+                    offset: [-14, 4]
+                    blur-radius: 8
+                    spread-radius: -4
+                    border-radius: 256
+                    clip-mode: "inset"
+                    color: red
new file mode 100644
--- /dev/null
+++ b/gfx/wr/wrench/reftests/transforms/perspective-box-shadow.yaml
@@ -0,0 +1,23 @@
+---
+root:
+  items:
+    -
+      type: "stacking-context"
+      items:
+        -
+          type: "reference-frame"
+          transform: [1, 0, 0, 0, -0.20399817824363708, 0.05275486409664154, 0.9659258127212524, -0.0008049382013268769, -0.05466114357113838, -1.0211405754089355, 0.258819043636322, -0.00021568253578152508, 52.22355651855469, 242.49476623535156, -247.27700805664063, 1.206064224243164]
+          items:
+            -
+              type: "stacking-context"
+              items:
+                  -
+                    type: "box-shadow"
+                    bounds: [30, 0, 507, 512]
+                    box-bounds: [30, 0, 507, 512]
+                    offset: [-14, 4]
+                    blur-radius: 8
+                    spread-radius: -4
+                    border-radius: 256
+                    clip-mode: "inset"
+                    color: red
--- a/gfx/wr/wrench/reftests/transforms/reftest.list
+++ b/gfx/wr/wrench/reftests/transforms/reftest.list
@@ -22,16 +22,17 @@ platform(linux,mac) == nested-rotate-x-f
 platform(linux,mac) == nested-preserve-3d.yaml nested-preserve-3d.png
 platform(linux,mac) fuzzy(1,283) == near-plane-clip.yaml near-plane-clip.png
 platform(linux,mac) == perspective-mask.yaml perspective-mask.png
 rotate-clip.yaml rotate-clip-ref.yaml
 skip_on(android) == clip-translate.yaml clip-translate-ref.yaml  # Fails on Android
 platform(linux,mac) == perspective-clip.yaml perspective-clip.png
 platform(linux,mac) fuzzy(1,2) == perspective-clip-1.yaml perspective-clip-1.png
 platform(linux,mac) fuzzy(1,2) == perspective-shadow.yaml perspective-shadow.png
+# ENABLE ME (Bug 1474294) == perspective-box-shadow.yaml perspective-box-shadow-ref.yaml
 == complex-preserve-3d.yaml blank.yaml
 platform(linux,mac) fuzzy(9,348) == perspective-border-radius.yaml perspective-border-radius.png
 == snapped-preserve-3d.yaml snapped-preserve-3d-ref.yaml
 platform(linux,mac) fuzzy(1,122) == border-scale.yaml border-scale.png
 platform(linux,mac) fuzzy(1,16) == border-scale-2.yaml border-scale-2.png
 platform(linux,mac) fuzzy(1,69) == border-scale-3.yaml border-scale-3.png
 platform(linux,mac) fuzzy(1,74) == border-scale-4.yaml border-scale-4.png
 # Just make sure we aren't crashing here