summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-01-26 00:27:55 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2009-01-26 00:27:55 (GMT)
commitcf87a224d6b44ad649bb07bf0024b8cae5afe464 (patch)
treebfdccaa26aca50e4e1a930b3eb2d88a85c7a386b
parentd38d999b9824829064a2d6417ba73435a114e1b9 (diff)
downloadnetsurftest-cf87a224d6b44ad649bb07bf0024b8cae5afe464.tar.gz
netsurftest-cf87a224d6b44ad649bb07bf0024b8cae5afe464.tar.bz2
Series of tests for specified and auto left/right margins and widths on blocks which establish a block formatting context and have floats to avoid.
svn path=/trunk/netsurftest/; revision=6276
-rw-r--r--works/floats-block-formatting-context2.html49
-rw-r--r--works/floats-block-formatting-context3.html50
-rw-r--r--works/floats-block-formatting-context4.html49
-rw-r--r--works/floats-block-formatting-context5.html49
-rw-r--r--works/floats-block-formatting-context6.html49
-rw-r--r--works/floats-block-formatting-context7.html49
6 files changed, 295 insertions, 0 deletions
diff --git a/works/floats-block-formatting-context2.html b/works/floats-block-formatting-context2.html
new file mode 100644
index 0000000..cfbe781
--- a/dev/null
+++ b/works/floats-block-formatting-context2.html
@@ -0,0 +1,49 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+
+<style type="text/css">
+div#leftcol {
+ float: left;
+ width: 150px;
+ height: 300px;
+ border: 1px solid black; }
+
+div#rightcol {
+ float: right;
+ width: 200px;
+ height: 300px;
+ border: 1px solid black; }
+
+div#centercol {
+ overflow: hidden;
+ margin:0 50px;
+ background: #eee; }
+</style>
+
+</head>
+<body>
+
+ <div id="leftcol">
+ Left float
+ </div>
+
+ <div id="rightcol">
+ Right float
+ </div>
+
+ <div id="centercol">
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/works/floats-block-formatting-context3.html b/works/floats-block-formatting-context3.html
new file mode 100644
index 0000000..b6323db
--- a/dev/null
+++ b/works/floats-block-formatting-context3.html
@@ -0,0 +1,50 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+
+<style type="text/css">
+div#leftcol {
+ float: left;
+ width: 150px;
+ height: 300px;
+ border: 1px solid black; }
+
+div#rightcol {
+ float: right;
+ width: 400px;
+ height: 300px;
+ border: 1px solid black; }
+
+div#centercol {
+ overflow: hidden;
+ margin:0 auto;
+ background: #eee;
+ width:100px; }
+</style>
+
+</head>
+<body>
+
+ <div id="leftcol">
+ Left float
+ </div>
+
+ <div id="rightcol">
+ Right float
+ </div>
+
+ <div id="centercol">
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/works/floats-block-formatting-context4.html b/works/floats-block-formatting-context4.html
new file mode 100644
index 0000000..2e61df7
--- a/dev/null
+++ b/works/floats-block-formatting-context4.html
@@ -0,0 +1,49 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+
+<style type="text/css">
+div#leftcol {
+ float: left;
+ width: 150px;
+ height: 300px;
+ border: 1px solid black; }
+
+div#rightcol {
+ float: right;
+ width: 200px;
+ height: 300px;
+ border: 1px solid black; }
+
+div#centercol {
+ overflow: hidden;
+ margin:0 175px;
+ background: #eee; }
+</style>
+
+</head>
+<body>
+
+ <div id="leftcol">
+ Left float
+ </div>
+
+ <div id="rightcol">
+ Right float
+ </div>
+
+ <div id="centercol">
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/works/floats-block-formatting-context5.html b/works/floats-block-formatting-context5.html
new file mode 100644
index 0000000..dfb6692
--- a/dev/null
+++ b/works/floats-block-formatting-context5.html
@@ -0,0 +1,49 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+
+<style type="text/css">
+div#leftcol {
+ float: left;
+ width: 150px;
+ height: 300px;
+ border: 1px solid black; }
+
+div#rightcol {
+ float: right;
+ width: 200px;
+ height: 300px;
+ border: 1px solid black; }
+
+div#centercol {
+ overflow: hidden;
+ margin:0 20%;
+ background: #eee; }
+</style>
+
+</head>
+<body>
+
+ <div id="leftcol">
+ Left float
+ </div>
+
+ <div id="rightcol">
+ Right float
+ </div>
+
+ <div id="centercol">
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/works/floats-block-formatting-context6.html b/works/floats-block-formatting-context6.html
new file mode 100644
index 0000000..59c3442
--- a/dev/null
+++ b/works/floats-block-formatting-context6.html
@@ -0,0 +1,49 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+
+<style type="text/css">
+div#leftcol {
+ float: left;
+ width: 150px;
+ height: 300px;
+ border: 1px solid black; }
+
+div#rightcol {
+ float: right;
+ width: 200px;
+ height: 300px;
+ border: 1px solid black; }
+
+div#centercol {
+ overflow: hidden;
+ margin:0 auto 0 20%;
+ background: #eee; }
+</style>
+
+</head>
+<body>
+
+ <div id="leftcol">
+ Left float
+ </div>
+
+ <div id="rightcol">
+ Right float
+ </div>
+
+ <div id="centercol">
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/works/floats-block-formatting-context7.html b/works/floats-block-formatting-context7.html
new file mode 100644
index 0000000..aa0b65a
--- a/dev/null
+++ b/works/floats-block-formatting-context7.html
@@ -0,0 +1,49 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+
+<style type="text/css">
+div#leftcol {
+ float: left;
+ width: 150px;
+ height: 300px;
+ border: 1px solid black; }
+
+div#rightcol {
+ float: right;
+ width: 200px;
+ height: 300px;
+ border: 1px solid black; }
+
+div#centercol {
+ overflow: hidden;
+ margin:0 20% 0 auto;
+ background: #eee; }
+</style>
+
+</head>
+<body>
+
+ <div id="leftcol">
+ Left float
+ </div>
+
+ <div id="rightcol">
+ Right float
+ </div>
+
+ <div id="centercol">
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ Block formatting context Block formatting context
+ </div>
+</body>
+</html> \ No newline at end of file