Bug 926155 - Added reftest to verify that an element contained within a sticky element that is also a scroll container will be reflowed correctly when updated. r=dholbert
authorKearwood (Kip) Gilbert <kgilbert@mozilla.com>
Thu, 17 Apr 2014 16:23:22 -0400
changeset 197694 d32e6e5c56177e430ad79c4b8f4bde821bcbf30b
parent 197671 fdfb11f2cf9cc52df05c86358bb3537d7e5bc4cd
child 197695 7cc66aee4341db6523eeee2b10f6fa9e58a30ca6
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs926155
milestone31.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 926155 - Added reftest to verify that an element contained within a sticky element that is also a scroll container will be reflowed correctly when updated. r=dholbert This test verifies that the reflow will not be interrupted by a sticky element that is also a scroll container.
layout/reftests/bugs/926155-1-ref.html
layout/reftests/bugs/926155-1.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/926155-1-ref.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<html>
+  <body>
+    <div style="overflow-x:hidden">
+      <div id="testdiv" style="width:200px;margin-top:50px;height:10px;background-color:green"></div>
+    </div>
+  </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/926155-1.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+  <body>
+    <div style="overflow:hidden;height:100px">
+      <div style="overflow-x:hidden;position:sticky;top:50px">
+        <div id="testdiv" style="width:10px;height:10px;background-color:green"></div>
+      </div>
+    </div>
+  <script>
+    function doTest() {
+      var x = document.getElementById('testdiv');
+      x.style.width = "200px";
+      document.documentElement.className = "";
+    }
+    document.addEventListener("MozReftestInvalidate", doTest, false);
+  </script>
+  </body>
+</html>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -1776,16 +1776,17 @@ skip-if(B2G&&browserIsRemote) == 858803-
 == 883987-1f.html 883987-1-ref.html
 == 890495-1.html 890495-1-ref.html
 == 894931-1.html 894931-1-ref.html
 == 897491-1.html 897491-1-ref.html
 == 897491-2.html 897491-2-ref.html
 fuzzy(1,10000) fuzzy-if(Android&&AndroidVersion>=15,5,10000) == 902330-1.html 902330-1-ref.html
 fuzzy-if(Android,8,400) == 906199-1.html 906199-1-ref.html
 == 921716-1.html 921716-1-ref.html
+== 926155-1.html 926155-1-ref.html
 fuzzy-if(cocoaWidget,1,40) == 928607-1.html 928607-1-ref.html
 == 931464-1.html 931464-1-ref.html
 == 931853.html 931853-ref.html
 == 931853-quirks.html 931853-quirks-ref.html
 fuzzy-if(OSX==10.6,2,30) skip-if(B2G&&browserIsRemote) == 933264-1.html 933264-1-ref.html
 == 936670-1.svg 936670-1-ref.svg
 == 941940-1.html 941940-1-ref.html
 fails == 942017.html 942017-ref.html # bug 942017