summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-01-20 21:38:25 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2009-01-20 21:38:25 (GMT)
commit7cd5dcce1653a551080bbc1d28f0935073e021ce (patch)
tree67c7e38f2d00128aea045f84e1a3c2d8726dfd8d
parent76bab36eb4a4d480f6ab7c83bb653371909bd999 (diff)
downloadnetsurftest-7cd5dcce1653a551080bbc1d28f0935073e021ce.tar.gz
netsurftest-7cd5dcce1653a551080bbc1d28f0935073e021ce.tar.bz2
Test cases for fixed issue with -ve margin floats.
svn path=/trunk/netsurftest/; revision=6157
-rw-r--r--works/float-based-layout.html (renamed from haveproblems/float-based-layout.html)2
-rw-r--r--works/float-negative-margin.html34
2 files changed, 36 insertions, 0 deletions
diff --git a/haveproblems/float-based-layout.html b/works/float-based-layout.html
index 16cb814..3e5b2e1 100644
--- a/haveproblems/float-based-layout.html
+++ b/works/float-based-layout.html
@@ -1,3 +1,5 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style>
diff --git a/works/float-negative-margin.html b/works/float-negative-margin.html
new file mode 100644
index 0000000..e8ae4a8
--- a/dev/null
+++ b/works/float-negative-margin.html
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<style>
+
+.column {
+ float: left; }
+
+.leftCol {
+ width: 200px;
+ margin-left: -500px;
+ background: red;
+ height:100px; }
+
+.mainCol {
+ margin: 0 0 0 200px;
+ width: 300px;
+ background: orange; }
+
+.rightCol {
+ width: 100px;
+ background: yellow;
+ height:50px; }
+</style>
+</head>
+
+<body>
+
+<div class="column mainCol">Main</div>
+<div class="column leftCol">Left</div>
+<div class="column rightCol"><br>Right</div>
+</body>
+</html>