summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-01-26 17:10:07 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2009-01-26 17:10:07 (GMT)
commit586e54b004f97583d78ba3fe61ecc200104128a7 (patch)
treef4388ff1be7de096f6ff3385d7084fa8206d0201
parentcf87a224d6b44ad649bb07bf0024b8cae5afe464 (diff)
downloadnetsurftest-586e54b004f97583d78ba3fe61ecc200104128a7.tar.gz
netsurftest-586e54b004f97583d78ba3fe61ecc200104128a7.tar.bz2
Test case for specified and auto widths for divs and tables.
svn path=/trunk/netsurftest/; revision=6282
-rw-r--r--works/div-and-table-width-tests.html72
1 files changed, 72 insertions, 0 deletions
diff --git a/works/div-and-table-width-tests.html b/works/div-and-table-width-tests.html
new file mode 100644
index 0000000..4a47c6c
--- a/dev/null
+++ b/works/div-and-table-width-tests.html
@@ -0,0 +1,72 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<style>
+body {
+ margin: 0;
+ padding: 0; }
+table, div {
+ border-width: 4em;
+ border-style: outset; }
+</style>
+</head>
+
+<body>
+
+<div style="border: none; padding:2em 8em;">
+ <div style="background:red;border-color:red;">
+ DIV: auto width
+ </div>
+
+ <div style="background:orange;border-color: orange;width:100%;">
+ DIV: 100% width
+ </div>
+
+ <table style="background:green;border-color:green;">
+ <tr>
+ <td>
+ TABLE: auto width, TABLE: auto width,
+ TABLE: auto width, TABLE: auto width,
+ TABLE: auto width, TABLE: auto width,
+ TABLE: auto width, TABLE: auto width,
+ TABLE: auto width, TABLE: auto width,
+ TABLE: auto width, TABLE: auto width,
+ TABLE: auto width, TABLE: auto width,
+ TABLE: auto width, TABLE: auto width,
+ TABLE: auto width, TABLE: auto width,
+ TABLE: auto width, TABLE: auto width,
+ TABLE: auto width, TABLE: auto width,
+ TABLE: auto width, TABLE: auto width,
+ TABLE: auto width, TABLE: auto width,
+ TABLE: auto width, TABLE: auto width,
+ TABLE: auto width, TABLE: auto width,
+ TABLE: auto width, TABLE: auto width,
+ TABLE: auto width, TABLE: auto width
+ </td>
+ </tr>
+ </table>
+
+ <table style="background:blue;border-color:blue;width:100%;">
+ <tr>
+ <td>
+ TABLE: 100% width
+ </td>
+ </tr>
+ </table>
+
+ <table style="background:yellow;border-color:yellow;width:12em;">
+ <tr>
+ <td>
+ TABLE: 12em width
+ </td>
+ </tr>
+ </table>
+
+ <div style="background:pink;border-color:pink;width:12em;">
+ DIV: 12em width
+ </div>
+</div>
+
+</body>
+</html> \ No newline at end of file