Add test for the hiermenu image positioning bug.
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Apr 2004 20:56:13 +0000 (20:56 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Apr 2004 20:56:13 +0000 (20:56 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6439 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/fast/block/positioning/061-expected.txt [new file with mode: 0644]
LayoutTests/fast/block/positioning/061.html [new file with mode: 0644]

diff --git a/LayoutTests/fast/block/positioning/061-expected.txt b/LayoutTests/fast/block/positioning/061-expected.txt
new file mode 100644 (file)
index 0000000..dd60372
--- /dev/null
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+  RenderBlock {HTML} at (0,0) size 800x8
+    RenderBody {BODY} at (8,8) size 784x0
+      RenderText {TEXT} at (0,0) size 0x0
+      RenderText {TEXT} at (0,0) size 0x0
+      RenderText {TEXT} at (0,0) size 0x0
+layer at (10,10) size 10x10
+  RenderBlock (positioned) {DIV} at (10,10) size 10x10 [bgcolor=#FF0000]
+    RenderImage {IMG} at (0,4) size 10x10
+layer at (10,30) size 10x10
+  RenderBlock (positioned) {DIV} at (10,30) size 10x10 [bgcolor=#FF0000]
+    RenderImage {IMG} at (0,4) size 10x10
+layer at (10,30) size 10x10
+  RenderImage {IMG} at (0,0) size 10x10 [bgcolor=#0000FF]
diff --git a/LayoutTests/fast/block/positioning/061.html b/LayoutTests/fast/block/positioning/061.html
new file mode 100644 (file)
index 0000000..fc6f5a4
--- /dev/null
@@ -0,0 +1,17 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN" 
+    "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+
+<body>
+   <div id="theRectangle3"
+        style="margin:0px 0px 0px 0px; padding:0px 0px 0px 0px; border:0px 0px 0px 0px;
+               background-color:red; height:10px; position:absolute; top:10px; left:10px; overflow:hidden"><img
+        src="/art/t.gif" width="10" height="10" alt="nothing" /></div>
+   <div id="theRectangle1"
+        style="margin:0px 0px 0px 0px; padding:0px 0px 0px 0px; border:0px 0px 0px 0px;
+               background-color:red; height:10px; position:absolute; top:30px; left:10px; overflow:hidden"><img
+        width="10" height="10" alt="nothing" /><img 
+        width="10" height="10" alt="Blue Square" style="background-color: blue; position:absolute;
+        top:0px; left:0px" /></div>
+</body>
+</html>
\ No newline at end of file