summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-01-18 23:49:33 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2009-01-18 23:49:33 (GMT)
commit76bab36eb4a4d480f6ab7c83bb653371909bd999 (patch)
treeaf052f69b58fdc81cd66804fea0880350708f9af
parentcec09a631aa86f4dc4e1a3314cdaa6b62941b09a (diff)
downloadnetsurftest-76bab36eb4a4d480f6ab7c83bb653371909bd999.tar.gz
netsurftest-76bab36eb4a4d480f6ab7c83bb653371909bd999.tar.bz2
Test case for block formatting context width/position when floats are present.
svn path=/trunk/netsurftest/; revision=6143
-rw-r--r--works/floats-block-formatting-context.html48
1 files changed, 48 insertions, 0 deletions
diff --git a/works/floats-block-formatting-context.html b/works/floats-block-formatting-context.html
new file mode 100644
index 0000000..f723033
--- a/dev/null
+++ b/works/floats-block-formatting-context.html
@@ -0,0 +1,48 @@
+<!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;
+ 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