Reftest for bug 393490
authorroc+@cs.cmu.edu
Thu, 21 Feb 2008 17:07:44 -0800
changeset 12061 0f7040fbf451ffb8eb333ae2e6b59ec4b574ea9c
parent 12060 b6a8d54a46dacaeb7ea4ec95ae4374903cfaf2ec
child 12062 56307fdfda61c191785a0ca5810605c7899de26c
push idunknown
push userunknown
push dateunknown
bugs393490
milestone1.9b4pre
Reftest for bug 393490
layout/reftests/bugs/393490-1-ref.html
layout/reftests/bugs/393490-1.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/393490-1-ref.html
@@ -0,0 +1,16 @@
+<html>
+<body onclick="">
+<div style="float:left;width:500px; border: 1px solid black;">
+  <div>
+    <div style="float:right;">
+      <div style="padding-top: 50px; background-color: green;">
+        <img id="a" src="" style="width:300px">
+      </div>
+
+    </div>
+    <div style="float:right;width:150px;height:150px;clear:right; background-color:blue;"></div>
+    <h2>This text should not overlap with the green box</h2>
+  </div>
+</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/393490-1.html
@@ -0,0 +1,20 @@
+<html>
+<body onclick="">
+<div style="float:left;width:500px; border: 1px solid black;">
+  <div>
+    <div style="float:right;">
+      <div style="padding-top: 50px; background-color: green;">
+        <img id="a" src="">
+      </div>
+
+    </div>
+    <div style="float:right;width:150px;height:150px;clear:right; background-color:blue;"></div>
+    <h2>This text should not overlap with the green box</h2>
+  </div>
+</div>
+<script>
+document.body.offsetTop;
+document.getElementById('a').style.width='300px';
+</script>
+</body>
+</html>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -578,16 +578,17 @@ skip-if(MOZ_WIDGET_TOOLKIT!="windows") =
 == 391140-1.html 391140-1-ref.html
 == 391412-1a.html 391412-1-ref.html
 == 391412-1b.html 391412-1-ref.html
 == 391909-1.html 391909-1-ref.html
 == 391979.html 391979-ref.html
 == 391994-1.html 391994-1-ref.html
 == 392435-1.html 392435-1-ref.html
 == 393330-1.html 393330-1-ref.html
+== 393490-1.html 393490-1-ref.html
 == 393517-1.xhtml about:blank  # crash test
 == 393649-1.html 393649-1-ref.html
 == 393655-1.html 393655-1-ref.html
 == 393655-2.html 393655-2-ref.html
 == 393655-3.html 393655-3-ref.html
 == 393655-4.html 393655-4-ref.html
 == 393655-5.html 393655-5-ref.html
 == 393671-1.html 393671-1-ref.html