summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-07-13 16:19:34 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2009-07-13 16:19:34 (GMT)
commit0e8ffccf85db2121ba907a44dfeb10a23ec61db8 (patch)
treeb6a51a154be1c9e0186514d2917f88f0d6b80bba
parent1d8cd3a2f25000a41dec1f6dc1ad4f5ef4db4ba4 (diff)
downloadnetsurftest-0e8ffccf85db2121ba907a44dfeb10a23ec61db8.tar.gz
netsurftest-0e8ffccf85db2121ba907a44dfeb10a23ec61db8.tar.bz2
Test case for various contents of a shrink-to-fit box. Problem with cleared floats incorrectly increasing the max content width.
svn path=/trunk/netsurftest/; revision=8503
-rw-r--r--haveproblems/shrink-to-fit.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/haveproblems/shrink-to-fit.html b/haveproblems/shrink-to-fit.html
new file mode 100644
index 0000000..fa2ace0
--- a/dev/null
+++ b/haveproblems/shrink-to-fit.html
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<body>
+<p style="clear:both;">Containing floats.</p>
+<div style="float:left;clear:both;background:green;padding:4px;margin-bottom:2em;">
+ <div style="float:left; width:600px;height:50px;background:red;"></div>
+ <div style="float:left; width:500px;height:50px;background:red;"></div>
+ <div style="float:left; width:400px;height:50px;background:red;"></div>
+ <div style="float:left; width:300px;height:50px;background:red;"></div>
+</div>
+<p style="clear:both;">Containing cleared floats.</p>
+<div style="float:left;clear:both;background:green;padding:4px;margin-bottom:2em;">
+ <div style="float:left; width:600px;height:50px;background:red;clear:both;"></div>
+ <div style="float:left; width:500px;height:50px;background:red;clear:both;"></div>
+ <div style="float:left; width:400px;height:50px;background:red;clear:both;"></div>
+ <div style="float:left; width:300px;height:50px;background:red;clear:both;"></div>
+</div>
+<p style="clear:both;">Containing blocks.</p>
+<div style="float:left;clear:both;background:green;padding:4px;margin-bottom:2em;">
+ <div style="width:600px;height:50px;background:red;"></div>
+ <div style="width:500px;height:50px;background:red;"></div>
+ <div style="width:400px;height:50px;background:red;"></div>
+ <div style="width:300px;height:50px;background:red;"></div>
+</div>
+<p style="clear:both;">Containing positioned blocks.</p>
+<div style="float:left;clear:both;background:green;padding:4px;margin-bottom:2em;">
+ <div style="width:600px;height:50px;background:red;position:absolute;"></div>
+ <div style="width:500px;height:50px;background:red;position:absolute;"></div>
+ <div style="width:400px;height:50px;background:red;position:absolute;"></div>
+ <div style="width:300px;height:50px;background:red;position:absolute;"></div>
+</div>
+</body>
+</html>