Reviewed by Darin.
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Feb 2006 08:36:07 +0000 (08:36 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Feb 2006 08:36:07 +0000 (08:36 +0000)
        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=6881
          Block with position:absolute bottom:0 doesn't always move when height
          of containing block changes (affects Safari RSS)

        * fast/block/positioning/height-change-expected.checksum: Added.
        * fast/block/positioning/height-change-expected.png: Added.
        * fast/block/positioning/height-change-expected.txt: Added.
        * fast/block/positioning/height-change.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12525 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/block/positioning/height-change-expected.checksum [new file with mode: 0644]
LayoutTests/fast/block/positioning/height-change-expected.png [new file with mode: 0644]
LayoutTests/fast/block/positioning/height-change-expected.txt [new file with mode: 0644]
LayoutTests/fast/block/positioning/height-change.html [new file with mode: 0644]

index daf7c8d211eba90b9b3cd7dd38177f2957390f16..484b3064f73699fcffd058f93d81344db7fe3654 100644 (file)
@@ -1,3 +1,16 @@
+2006-02-02  Mitz Pettel  <opendarwin.org@mitzpettel.com>
+
+        Reviewed by Darin.
+
+        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=6881
+          Block with position:absolute bottom:0 doesn't always move when height
+          of containing block changes (affects Safari RSS)
+
+        * fast/block/positioning/height-change-expected.checksum: Added.
+        * fast/block/positioning/height-change-expected.png: Added.
+        * fast/block/positioning/height-change-expected.txt: Added.
+        * fast/block/positioning/height-change.html: Added.
+
 2006-02-01  Darin Adler  <darin@apple.com>
 
         - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7018
diff --git a/LayoutTests/fast/block/positioning/height-change-expected.checksum b/LayoutTests/fast/block/positioning/height-change-expected.checksum
new file mode 100644 (file)
index 0000000..e3eceba
--- /dev/null
@@ -0,0 +1 @@
+64d9c042bb0ad0b220a2453a63223e7d
\ No newline at end of file
diff --git a/LayoutTests/fast/block/positioning/height-change-expected.png b/LayoutTests/fast/block/positioning/height-change-expected.png
new file mode 100644 (file)
index 0000000..1c521d6
Binary files /dev/null and b/LayoutTests/fast/block/positioning/height-change-expected.png differ
diff --git a/LayoutTests/fast/block/positioning/height-change-expected.txt b/LayoutTests/fast/block/positioning/height-change-expected.txt
new file mode 100644 (file)
index 0000000..1086cf6
--- /dev/null
@@ -0,0 +1,34 @@
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x36
+        RenderText {TEXT} at (0,0) size 212x18
+          text run at (0,0) width 212: "This tests for a regression against "
+        RenderInline {I} at (0,0) size 743x36
+          RenderInline {A} at (0,0) size 348x18 [color=#0000EE]
+            RenderText {TEXT} at (212,0) size 348x18
+              text run at (212,0) width 348: "http://bugzilla.opendarwin.org/show_bug.cgi?id=6881"
+          RenderText {TEXT} at (560,0) size 743x36
+            text run at (560,0) width 4: " "
+            text run at (564,0) width 179: "Block with position:absolute"
+            text run at (0,18) width 579: "bottom:0 doesn't always move when height of containing block changes (affects Safari RSS)"
+        RenderText {TEXT} at (579,18) size 4x18
+          text run at (579,18) width 4: "."
+      RenderBlock {P} at (0,52) size 784x18
+        RenderText {TEXT} at (0,0) size 550x18
+          text run at (0,0) width 550: "The squares below should have blue tops and green bottoms, not the other way around."
+      RenderBlock {HR} at (0,86) size 784x2 [border: (1px inset #000000)]
+      RenderBlock (anonymous) at (0,196) size 784x18
+        RenderBR {BR} at (0,0) size 0x18
+layer at (8,104) size 784x100
+  RenderBlock (relative positioned) {DIV} at (0,96) size 784x100
+    RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#87CEEB]
+layer at (8,154) size 100x50
+  RenderBlock (positioned) {DIV} at (0,50) size 100x50 [bgcolor=#90EE90]
+layer at (8,222) size 784x100
+  RenderFlexibleBox (relative positioned) {DIV} at (0,214) size 784x100
+    RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#87CEEB]
+layer at (8,272) size 100x50
+  RenderBlock (positioned) {DIV} at (0,50) size 100x50 [bgcolor=#90EE90]
diff --git a/LayoutTests/fast/block/positioning/height-change.html b/LayoutTests/fast/block/positioning/height-change.html
new file mode 100644 (file)
index 0000000..170698e
--- /dev/null
@@ -0,0 +1,38 @@
+<html>
+<head>
+<style type="text/css">
+.articlefooter {
+       position: absolute;
+       bottom: 0;
+       width: 100px;   
+    background-color: lightgreen;
+       height: 50px;
+}
+</style>
+<title></title>
+</head>
+<body>
+<p>
+    This tests for a regression against
+    <i><a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=6881">http://bugzilla.opendarwin.org/show_bug.cgi?id=6881</a>
+    Block with position:absolute bottom:0 doesn't always move when height of containing block changes (affects Safari RSS)</i>.
+</p>
+<p>
+    The squares below should have blue tops and green bottoms, not the other way around.
+</p>
+<hr>
+<div style="position: relative;">
+    <div class=articlefooter></div>
+    <div id="t" style="background: skyblue; height: 50px; width: 100px;"></div>
+</div>
+<br>
+<div style="position: relative; display: -apple-box;">
+    <div class=articlefooter></div>
+    <div id="u" style="background: skyblue; height: 50px; width: 100px;"></div>
+</div>
+<script type="text/javascript">
+    document.body.offsetTop;    // force layout
+    t.style.height = '100px';
+    u.style.height = '100px';
+</script>
+</body>