summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-04-21 19:07:39 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2011-04-21 19:07:39 (GMT)
commit44a9d4b46948fc7ac9f076671b540080a9fafc6d (patch)
tree4fa59ea6df5f46ec05f7a41aeaf164b9638aa9cc
parent3015cbc76bea94bbd115d1537169d285f00e3f27 (diff)
downloadnetsurftest-44a9d4b46948fc7ac9f076671b540080a9fafc6d.tar.gz
netsurftest-44a9d4b46948fc7ac9f076671b540080a9fafc6d.tar.bz2
Add some test cases.
svn path=/trunk/netsurftest/; revision=12214
-rw-r--r--haveproblems/arstechnica-margin.html25
-rw-r--r--haveproblems/collapsing-margins.html13
-rw-r--r--haveproblems/margin-tests.html21
3 files changed, 59 insertions, 0 deletions
diff --git a/haveproblems/arstechnica-margin.html b/haveproblems/arstechnica-margin.html
new file mode 100644
index 0000000..4c85177
--- a/dev/null
+++ b/haveproblems/arstechnica-margin.html
@@ -0,0 +1,25 @@
+<html>
+<head>
+<style>
+html,body{
+ background:#201f25;
+ margin:0;
+ padding:0}
+
+#features-slider{
+ margin-top:-60px;
+ padding-bottom:5px}
+
+.bubble{
+ background:red;
+ margin-top:-10px;
+ height: 20px;}
+</style>
+</head>
+<body style="padding-top:60px;">
+
+ <div id="features-slider">
+ <div class="bubble">
+ <div style="background: yellow; height:10px;"></div>
+ </div>
+ </div>
diff --git a/haveproblems/collapsing-margins.html b/haveproblems/collapsing-margins.html
new file mode 100644
index 0000000..0535e86
--- a/dev/null
+++ b/haveproblems/collapsing-margins.html
@@ -0,0 +1,13 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<style>
+head, body {margin:0px; padding:0;}
+</style>
+</head>
+<body>
+<div style="background: red; margin: 10px;">
+ <div style="background: green; margin: 20px;">
+ <div style="background: blue; margin: 30px;">
+ <div style="background: yellow; margin: 10px;">
+ hello
diff --git a/haveproblems/margin-tests.html b/haveproblems/margin-tests.html
new file mode 100644
index 0000000..8b0da61
--- a/dev/null
+++ b/haveproblems/margin-tests.html
@@ -0,0 +1,21 @@
+<html>
+<head>
+<style>
+div { height:10px; margin-bottom:10px; }
+.a { background:red; }
+.b { background:green; overflow:hidden; }
+</style>
+</head>
+<body>
+<div class="a"></div>
+<div class="a"></div>
+<div class="a"></div>
+<div class="b"></div>
+<div class="b"></div>
+<div class="b"></div>
+<div class="a"></div>
+<div class="b"></div>
+<div class="a"></div>
+<div class="b"></div>
+<div class="a"></div>
+<div class="b"></div> \ No newline at end of file