Add test cases for bug 9347.
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Oct 2006 08:27:25 +0000 (08:27 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Oct 2006 08:27:25 +0000 (08:27 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17067 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/fast/block/positioning/absolute-with-html-border-quirks-expected.checksum [new file with mode: 0644]
LayoutTests/fast/block/positioning/absolute-with-html-border-quirks-expected.png [new file with mode: 0644]
LayoutTests/fast/block/positioning/absolute-with-html-border-quirks-expected.txt [new file with mode: 0644]
LayoutTests/fast/block/positioning/absolute-with-html-border-quirks.html [new file with mode: 0644]
LayoutTests/fast/block/positioning/absolute-with-html-border-strict-expected.checksum [new file with mode: 0644]
LayoutTests/fast/block/positioning/absolute-with-html-border-strict-expected.png [new file with mode: 0644]
LayoutTests/fast/block/positioning/absolute-with-html-border-strict-expected.txt [new file with mode: 0644]
LayoutTests/fast/block/positioning/absolute-with-html-border-strict.html [new file with mode: 0644]

diff --git a/LayoutTests/fast/block/positioning/absolute-with-html-border-quirks-expected.checksum b/LayoutTests/fast/block/positioning/absolute-with-html-border-quirks-expected.checksum
new file mode 100644 (file)
index 0000000..5fe8b73
--- /dev/null
@@ -0,0 +1 @@
+ea15d2c5645771985c80c9fb9e1cdc30
\ No newline at end of file
diff --git a/LayoutTests/fast/block/positioning/absolute-with-html-border-quirks-expected.png b/LayoutTests/fast/block/positioning/absolute-with-html-border-quirks-expected.png
new file mode 100644 (file)
index 0000000..9794be1
Binary files /dev/null and b/LayoutTests/fast/block/positioning/absolute-with-html-border-quirks-expected.png differ
diff --git a/LayoutTests/fast/block/positioning/absolute-with-html-border-quirks-expected.txt b/LayoutTests/fast/block/positioning/absolute-with-html-border-quirks-expected.txt
new file mode 100644 (file)
index 0000000..09afbcc
--- /dev/null
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600 [border: (100px solid #000000)]
+    RenderBody {BODY} at (108,108) size 584x384
+layer at (600,400) size 200x200
+  RenderBlock (positioned) {DIV} at (600,400) size 200x200 [bgcolor=#008000]
+    RenderText {#text} at (0,0) size 186x54
+      text run at (0,0) width 180: "This should be in the bottom"
+      text run at (0,18) width 149: "right-hand corner of the"
+      text run at (0,36) width 186: "viewport even when resizing."
diff --git a/LayoutTests/fast/block/positioning/absolute-with-html-border-quirks.html b/LayoutTests/fast/block/positioning/absolute-with-html-border-quirks.html
new file mode 100644 (file)
index 0000000..e266768
--- /dev/null
@@ -0,0 +1,20 @@
+<html>\r
+<head>\r
+    <style type="text/css">\r
+        html {\r
+            border: 100px solid black;\r
+        }\r
+        #test {\r
+            position: absolute;\r
+            bottom: 0;\r
+            right: 0;\r
+            height: 200px;\r
+            width: 200px;\r
+            background: green;\r
+        }\r
+    </style>\r
+</head>\r
+<body>\r
+  <div id="test">This should be in the bottom right-hand corner of the viewport even when resizing.</div>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/LayoutTests/fast/block/positioning/absolute-with-html-border-strict-expected.checksum b/LayoutTests/fast/block/positioning/absolute-with-html-border-strict-expected.checksum
new file mode 100644 (file)
index 0000000..246c0d0
--- /dev/null
@@ -0,0 +1 @@
+f29417441c0944ea5bd93164ee8bab56
\ No newline at end of file
diff --git a/LayoutTests/fast/block/positioning/absolute-with-html-border-strict-expected.png b/LayoutTests/fast/block/positioning/absolute-with-html-border-strict-expected.png
new file mode 100644 (file)
index 0000000..c6f1488
Binary files /dev/null and b/LayoutTests/fast/block/positioning/absolute-with-html-border-strict-expected.png differ
diff --git a/LayoutTests/fast/block/positioning/absolute-with-html-border-strict-expected.txt b/LayoutTests/fast/block/positioning/absolute-with-html-border-strict-expected.txt
new file mode 100644 (file)
index 0000000..d94ee16
--- /dev/null
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x208
+  RenderBlock {HTML} at (0,0) size 800x208 [border: (100px solid #000000)]
+    RenderBody {BODY} at (108,108) size 584x0
+layer at (600,400) size 200x200
+  RenderBlock (positioned) {DIV} at (600,400) size 200x200 [bgcolor=#008000]
+    RenderText {#text} at (0,0) size 186x54
+      text run at (0,0) width 180: "This should be in the bottom"
+      text run at (0,18) width 149: "right-hand corner of the"
+      text run at (0,36) width 186: "viewport even when resizing."
diff --git a/LayoutTests/fast/block/positioning/absolute-with-html-border-strict.html b/LayoutTests/fast/block/positioning/absolute-with-html-border-strict.html
new file mode 100644 (file)
index 0000000..7ca9f1f
--- /dev/null
@@ -0,0 +1,21 @@
+<!DOCTYPE html>\r
+<html>\r
+<head>\r
+    <style type="text/css">\r
+        html {\r
+            border: 100px solid black;\r
+        }\r
+        #test {\r
+            position: absolute;\r
+            bottom: 0;\r
+            right: 0;\r
+            height: 200px;\r
+            width: 200px;\r
+            background: green;\r
+        }\r
+    </style>\r
+</head>\r
+<body>\r
+  <div id="test">This should be in the bottom right-hand corner of the viewport even when resizing.</div>\r
+</body>\r
+</html>
\ No newline at end of file