new layout test to cover percentage heights inside auto tables.
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Jul 2004 19:56:18 +0000 (19:56 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Jul 2004 19:56:18 +0000 (19:56 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7025 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/fast/table/auto-with-percent-height-expected.txt [new file with mode: 0644]
LayoutTests/fast/table/auto-with-percent-height.html [new file with mode: 0644]

diff --git a/LayoutTests/fast/table/auto-with-percent-height-expected.txt b/LayoutTests/fast/table/auto-with-percent-height-expected.txt
new file mode 100644 (file)
index 0000000..c616058
--- /dev/null
@@ -0,0 +1,31 @@
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x156
+  RenderBlock {HTML} at (0,0) size 800x156
+    RenderBody {BODY} at (8,16) size 784x124
+      RenderTable {TABLE} at (16,0) size 88x60 [border: (3px solid #FF0000)]
+        RenderTableSection {TBODY} at (3,3) size 0x54
+          RenderTableRow {TR} at (0,0) size 0x0
+            RenderTableCell {TD} at (2,2) size 78x50 [r=0 c=0 rs=1 cs=1]
+              RenderTable {TABLE} at (1,1) size 73x24 [color=#FFFFFF] [bgcolor=#800080]
+                RenderTableSection {TBODY} at (0,0) size 0x24
+                  RenderTableRow {TR} at (0,0) size 0x0
+                    RenderTableCell {TD} at (2,2) size 69x20 [r=0 c=0 rs=1 cs=1]
+                      RenderText {TEXT} at (1,1) size 67x18
+                        text run at (1,1) width 67: "Table One"
+              RenderTable {TABLE} at (1,25) size 76x24 [color=#FFFFFF] [bgcolor=#800080]
+                RenderTableSection {TBODY} at (0,0) size 0x24
+                  RenderTableRow {TR} at (0,0) size 0x0
+                    RenderTableCell {TD} at (2,2) size 72x20 [r=0 c=0 rs=1 cs=1]
+                      RenderText {TEXT} at (1,1) size 70x18
+                        text run at (1,1) width 70: "Table Two"
+      RenderTable {TABLE} at (16,76) size 70x48 [border: (3px solid #FF0000)]
+        RenderTableSection {TBODY} at (3,3) size 0x42
+          RenderTableRow {TR} at (0,0) size 0x0
+            RenderTableCell {TD} at (2,2) size 60x38 [r=0 c=0 rs=1 cs=1]
+              RenderBlock {DIV} at (1,1) size 58x18 [color=#FFFFFF] [bgcolor=#800080]
+                RenderText {TEXT} at (0,0) size 55x18
+                  text run at (0,0) width 55: "Div One"
+              RenderBlock {DIV} at (1,19) size 58x18 [color=#FFFFFF] [bgcolor=#800080]
+                RenderText {TEXT} at (0,0) size 58x18
+                  text run at (0,0) width 58: "Div Two"
diff --git a/LayoutTests/fast/table/auto-with-percent-height.html b/LayoutTests/fast/table/auto-with-percent-height.html
new file mode 100644 (file)
index 0000000..13ed444
--- /dev/null
@@ -0,0 +1,25 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+<head>
+<style>
+.table {
+  background-color: purple;
+  color: white;
+  height: 100%;
+}
+
+.outer {
+  border: 3px solid red;
+  margin: 1em;
+}
+</style>
+</head>
+<body>
+
+<table class=outer>
+  <tr><td><table class=table><tr><td>Table One</table><table class=table><tr><td>Table Two</table></td></tr>
+</table>
+
+<table class=outer>
+  <tr><td><div class=table>Div One</div><div class=table>Div Two</div>
+</table>