summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-01-09 00:13:29 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-01-09 00:13:29 +0000
commit0b611c045af5ae6b9c09bd31c9d07be1e79571ef (patch)
tree2118cf183a5fd7ac3082f268b11ce78a37d3dd90
parentd0ce040821c4a25414305373ca90c177a6aa6d65 (diff)
downloadnetsurf-test-0b611c045af5ae6b9c09bd31c9d07be1e79571ef.tar.gz
netsurf-test-0b611c045af5ae6b9c09bd31c9d07be1e79571ef.tar.bz2
Regression test for r11262.
svn path=/trunk/netsurftest/; revision=11263
-rw-r--r--works/negative-margin-top.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/works/negative-margin-top.html b/works/negative-margin-top.html
new file mode 100644
index 0000000..a58556e
--- /dev/null
+++ b/works/negative-margin-top.html
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+<title>top margin layout test</title>
+</head>
+
+<body>
+
+<div style="background: red; height: 5em;"></div>
+<div style="margin-top: -5em; background: yellow; height: 5em;"></div>
+<div style="margin-top: 1em; background: yellow; height: 5em;"></div>
+<div style="margin-top: 1em; background: yellow; height: 5em;"></div>
+<div style="margin-top: 1em; background: yellow; height: 5em;"></div>
+<div style="margin-top: 1em; background: yellow; height: 5em;"></div>
+
+<p>There should be no red above</p>
+
+</body>
+</html>
+