Bug 424766 - Left part of the page isn't repainted properly; invalidate reftest; r=roc
authorJonathan Griffin <jgriffin@mozilla.com>
Wed, 24 Jun 2009 23:31:25 +0200
changeset 29556 544c0a55c4020badcc798aa9a0650daf52ae73be
parent 29555 fa355d118585db34c23d9c82f0ad968c8628bd2a
child 29557 5f14dd5ec14aa408b5d8a19e3f3d5f49ac84280e
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs424766
milestone1.9.2a1pre
Bug 424766 - Left part of the page isn't repainted properly; invalidate reftest; r=roc
layout/reftests/bugs/424766-1-ref.html
layout/reftests/bugs/424766-1.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/424766-1-ref.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title></title>
+
+</head>
+
+<body style="width: 1000px; margin: 0; padding: 0">
+  <table cellpadding="0" cellspacing="0" align="center">
+    <tr>
+      <td>
+        <div style="background:red; WIDTH: 400px; height:400px;"></div>
+        <div id="x" style="width: 0px"></div>
+
+      </td>
+    </tr>
+  </table>
+  <div style="position: absolute; top: 0; left: 300px; height: 400px; width: 400px; background: green; opacity: 0.9"></div>
+
+<br/>
+
+<div style="text-align: center;">
+<form method="get" action="#">
+  <input onclick="return false;" value="Trigger Bug" type="button" />
+</form>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/424766-1.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<head>
+<title></title>
+
+<script type="text/javascript">
+//<![CDATA[
+
+function showBug() {
+  document.getElementById('x').style.width = 0;
+  }
+
+window.addEventListener("MozReftestInvalidate",
+  function() {
+    showBug();
+    document.documentElement.className = "";
+  }, false);
+
+//]]>
+</script>
+
+</head>
+
+<body style="width: 1000px; margin: 0; padding: 0">
+  <table cellpadding="0" cellspacing="0" align="center">
+    <tr>
+      <td>
+        <div style="background:red; WIDTH: 400px; height:400px;"></div>
+        <div id="x" style="width: 600px"></div>
+
+      </td>
+    </tr>
+  </table>
+  <div style="position: absolute; top: 0; left: 300px; height: 400px; width: 400px; background: green; opacity: 0.9"></div>
+
+<br/>
+
+<div style="text-align: center;">
+<form method="get" action="#">
+  <input onclick="showBug(); return false;" value="Trigger Bug" type="button" />
+</form>
+</div>
+
+</body>
+</html>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -944,16 +944,17 @@ fails-if(MOZ_WIDGET_TOOLKIT=="gtk2") == 
 == 424236-7.html 424236-7-ref.html
 == 424236-8.html 424236-8-ref.html
 == 424236-9.html 424236-9-ref.html
 == 424236-10.html 424236-10-ref.html
 == 424236-11.html 424236-3-ref.html
 == 424434-1.html 424434-1-ref.html
 == 424631-1.html 424631-1-ref.html
 == 424710-1.html 424710-1-ref.html
+== 424766-1.html 424766-1-ref.html
 == 425972-1.html 425972-1-ref.html
 == 425972-2.html 425972-2-ref.html
 != 425972-1.html 425972-2.html
 == 426629-1.html 426629-1-ref.html
 != 427017-1.xhtml about:blank    # crash test (needs reftest-print)
 == 427129-scrollframe.html 427129-ref.html
 == 427129-table.html 427129-ref.html
 == 427129-image.html 427129-ref.html