Bug 1382534 - Add an async-scrolling reftest. r=mstange draft
authorBotond Ballo <botond@mozilla.com>
Wed, 04 Oct 2017 16:39:47 -0400
changeset 690313 029692c6481923f30e29f6393b925e1b5e0a8811
parent 690312 d44fa219e728da4a10bf41fa542db3b962c10385
child 738553 132d33a8bf9438e6d133c5a28b514e20d95aeb54
push id87277
push userbballo@mozilla.com
push dateWed, 01 Nov 2017 21:17:50 +0000
reviewersmstange
bugs1382534
milestone58.0a1
Bug 1382534 - Add an async-scrolling reftest. r=mstange MozReview-Commit-ID: 2MuOY0tf7Jr
layout/reftests/async-scrolling/position-fixed-inside-clip-path-ref.html
layout/reftests/async-scrolling/position-fixed-inside-clip-path.html
layout/reftests/async-scrolling/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/async-scrolling/position-fixed-inside-clip-path-ref.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<style>
+  body {
+    height: 4000px;
+    margin: 0;
+    overflow: hidden;
+  }
+  #clip {
+    position: absolute;
+    top: 450px;
+    left: 300px;
+    background: red;
+    width: 400px;
+    height: 400px;
+    clip-path: inset(0);
+  }
+  #fixed {
+    position: fixed;
+    top: 0;
+    left: 0;
+    right: 0;
+    bottom: 0;
+    background: linear-gradient(green, blue);
+  }
+</style>
+<div id="clip">
+  <div id="fixed"></div>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/async-scrolling/position-fixed-inside-clip-path.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html reftest-async-scroll
+      reftest-displayport-x="0" reftest-displayport-y="0"
+      reftest-displayport-w="800" reftest-displayport-h="2000"
+      reftest-async-scroll-x="0" reftest-async-scroll-y="50">
+<style>
+  body {
+    height: 4000px;
+    margin: 0;
+    overflow: hidden;
+  }
+  #clip {
+    position: absolute;
+    top: 500px;
+    left: 300px;
+    background: red;
+    width: 400px;
+    height: 400px;
+    clip-path: inset(0);
+  }
+  #fixed {
+    position: fixed;
+    top: 0;
+    left: 0;
+    right: 0;
+    bottom: 0;
+    background: linear-gradient(green, blue);
+  }
+</style>
+<div id="clip">
+  <div id="fixed"></div>
+</div>
--- a/layout/reftests/async-scrolling/reftest.list
+++ b/layout/reftests/async-scrolling/reftest.list
@@ -28,16 +28,17 @@ fuzzy-if(skiaContent,2,240000) fuzzy-if(
 skip-if(!asyncPan) == sticky-pos-scrollable-1.html sticky-pos-scrollable-1-ref.html
 skip-if(!asyncPan) == sticky-pos-scrollable-2.html sticky-pos-scrollable-2-ref.html
 skip-if(!asyncPan) == sticky-pos-scrollable-3.html sticky-pos-scrollable-3-ref.html
 skip-if(!asyncPan) == fixed-pos-scrollable-1.html fixed-pos-scrollable-1-ref.html
 skip-if(!asyncPan) == culling-1.html culling-1-ref.html
 skip-if(!asyncPan) == position-fixed-iframe-1.html position-fixed-iframe-1-ref.html
 skip-if(!asyncPan) == position-fixed-iframe-2.html position-fixed-iframe-2-ref.html
 fuzzy-if(skiaContent,1,11300) skip-if(!asyncPan) == position-fixed-in-scroll-container.html position-fixed-in-scroll-container-ref.html
+skip-if(!asyncPan) == position-fixed-inside-clip-path.html position-fixed-inside-clip-path-ref.html
 skip-if(!asyncPan) == position-fixed-inside-sticky-1.html position-fixed-inside-sticky-1-ref.html
 skip-if(!asyncPan) == position-fixed-inside-sticky-2.html position-fixed-inside-sticky-2-ref.html
 fuzzy(1,60000) skip-if(!asyncPan) == group-opacity-surface-size-1.html group-opacity-surface-size-1-ref.html
 fuzzy-if(Android,1,197) skip-if(!asyncPan) == position-sticky-transformed.html position-sticky-transformed-ref.html
 skip-if(!asyncPan) == offscreen-prerendered-active-opacity.html offscreen-prerendered-active-opacity-ref.html
 fuzzy-if(Android,6,4) fuzzy-if(skiaContent&&!Android,1,34) skip-if(!asyncPan) == offscreen-clipped-blendmode-1.html offscreen-clipped-blendmode-ref.html
 fuzzy-if(Android,6,4) skip-if(!asyncPan) == offscreen-clipped-blendmode-2.html offscreen-clipped-blendmode-ref.html
 fuzzy-if(Android,6,4) skip == offscreen-clipped-blendmode-3.html offscreen-clipped-blendmode-ref.html # bug 1251588 - wrong AGR on mix-blend-mode item