Reviewed by Dave
authorkdecker <kdecker@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Jul 2004 23:01:08 +0000 (23:01 +0000)
committerkdecker <kdecker@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Jul 2004 23:01:08 +0000 (23:01 +0000)
Added a layout test for css 'width:auto'

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

LayoutTests/fast/css/007-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/007.html [new file with mode: 0644]

diff --git a/LayoutTests/fast/css/007-expected.txt b/LayoutTests/fast/css/007-expected.txt
new file mode 100644 (file)
index 0000000..b03d3d8
--- /dev/null
@@ -0,0 +1,15 @@
+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 {DIV} at (0,0) size 784x0
+        RenderBlock {UL} at (0,0) size 784x0
+          RenderListItem {LI} at (40,0) size 744x0
+            RenderBlock (floating) {A} at (9,0) size 97x18
+              RenderText {TEXT} at (0,0) size 97x18
+                text run at (0,0) width 97: "This is link one"
+          RenderListItem {LI} at (40,0) size 744x0
+            RenderBlock (floating) {A} at (106,0) size 304x18
+              RenderText {TEXT} at (0,0) size 304x18
+                text run at (0,0) width 304: "This is link two and it shouldn't overlap link one"
diff --git a/LayoutTests/fast/css/007.html b/LayoutTests/fast/css/007.html
new file mode 100644 (file)
index 0000000..6400bc5
--- /dev/null
@@ -0,0 +1,26 @@
+<html>
+<style type="text/css">
+#header ul {
+       list-style: none;
+}
+#header li {
+       padding: 0 0 0 9px;
+}
+#header a {
+       float: left;
+       width: .1em;
+}
+#header > ul a {
+       width: auto; /* doesn't work */
+}
+</style>
+
+  <div id="header">
+    <ul>
+      <li> <a>This is link one</a></li>
+      <li> <a>This is link two and it shouldn't overlap link one</a></li>
+    </ul>
+  </div>
+
+
+</html>
\ No newline at end of file