Bug 1434250 - Reftest. r=kats draft
authorBotond Ballo <botond@mozilla.com>
Wed, 07 Feb 2018 16:01:30 -0500
changeset 753219 d8475017ccc4af936654c1fba18f1b9e2b247b8d
parent 753218 4f163eca06a7f99eb3d01c80daf8c4674126d4e0
push id98523
push userbballo@mozilla.com
push dateFri, 09 Feb 2018 20:49:23 +0000
reviewerskats
bugs1434250
milestone60.0a1
Bug 1434250 - Reftest. r=kats MozReview-Commit-ID: HiPeeyLD6Xh
layout/reftests/async-scrolling/position-sticky-bug1434250-ref.html
layout/reftests/async-scrolling/position-sticky-bug1434250.html
layout/reftests/async-scrolling/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/async-scrolling/position-sticky-bug1434250-ref.html
@@ -0,0 +1,28 @@
+<!doctype html>
+<html>
+  <head>
+    <meta charset='utf-8'>
+    <style type="text/css" media="all">
+      body {
+        margin-top: 0;
+        overflow: hidden;
+      }
+      .container {
+        width: 500px;
+        background: #fcc;
+        height: 2000px;
+      }
+      .header {
+        position: sticky;
+        top: 0px;
+        background: #cfc;
+        height: 50px;
+      }
+    </style>
+  </head>
+  <body>
+    <div class='container'>
+      <div class='header'></div>
+    </div>
+  </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/async-scrolling/position-sticky-bug1434250.html
@@ -0,0 +1,30 @@
+<!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">
+  <head>
+    <meta charset='utf-8'>
+    <style type="text/css" media="all">
+      body {
+        overflow: hidden;
+      }
+      .container {
+        width: 500px;
+        background: #fcc;
+        height: 2000px;
+      }
+      .header {
+        position: sticky;
+        top: 0px;
+        background: #cfc;
+        height: 50px;
+      }
+    </style>
+  </head>
+  <body>
+    <div class='container'>
+      <div class='header'></div>
+    </div>
+  </body>
+</html>
--- a/layout/reftests/async-scrolling/reftest.list
+++ b/layout/reftests/async-scrolling/reftest.list
@@ -56,16 +56,17 @@ pref(apz.disable_for_scroll_linked_effec
 fuzzy-if(browserIsRemote&&d2d,1,19) skip-if(!asyncPan) == background-blend-mode-1.html background-blend-mode-1-ref.html
 skip-if(Android||!asyncPan) != opaque-fractional-displayport-1.html about:blank
 skip-if(Android||!asyncPan) != opaque-fractional-displayport-2.html about:blank
 fuzzy-if(Android,6,4) skip-if(!asyncPan) == fixed-pos-scrolled-clip-1.html fixed-pos-scrolled-clip-1-ref.html
 fuzzy-if(Android,6,8) fails-if(webrender) skip-if(!asyncPan) == fixed-pos-scrolled-clip-2.html fixed-pos-scrolled-clip-2-ref.html   # bug 1377187 for webrender
 fuzzy-if(Android,6,8) fails-if(webrender) skip-if(!asyncPan) == fixed-pos-scrolled-clip-3.html fixed-pos-scrolled-clip-3-ref.html   # bug 1377187 for webrender
 fuzzy-if(Android,6,8) skip-if(!asyncPan) == fixed-pos-scrolled-clip-4.html fixed-pos-scrolled-clip-4-ref.html
 skip-if(!asyncPan) == fixed-pos-scrolled-clip-5.html fixed-pos-scrolled-clip-5-ref.html
+skip-if(!asyncPan) == position-sticky-bug1434250.html position-sticky-bug1434250-ref.html
 fuzzy-if(Android,6,4) skip-if(!asyncPan) == position-sticky-scrolled-clip-1.html position-sticky-scrolled-clip-1-ref.html
 fuzzy-if(Android,6,4) skip == position-sticky-scrolled-clip-2.html position-sticky-scrolled-clip-2-ref.html # bug ?????? - incorrectly applying clip to sticky contents
 skip-if(!asyncPan) == curtain-effect-1.html curtain-effect-1-ref.html
 
 # for the following tests, we want to disable the low-precision buffer
 # as it will expand the displayport beyond what the test specifies in
 # its reftest-displayport attributes, and interfere with where we expect
 # checkerboarding to occur