aboutsummaryrefslogtreecommitdiffstats
path: root/tests/html/fixed_table_2.html
diff options
context:
space:
mode:
authorJack Moffitt <jack@metajack.im>2014-08-28 09:34:23 -0600
committerJack Moffitt <jack@metajack.im>2014-09-08 20:21:42 -0600
commitc6ab60dbfc6da7b4f800c9e40893c8b58413960c (patch)
treed1d74076cf7fa20e4f77ec7cb82cae98b67362cb /tests/html/fixed_table_2.html
parentdb2f642c32fc5bed445bb6f2e45b0f6f0b4342cf (diff)
downloadservo-c6ab60dbfc6da7b4f800c9e40893c8b58413960c.tar.gz
servo-c6ab60dbfc6da7b4f800c9e40893c8b58413960c.zip
Cargoify servo
Diffstat (limited to 'tests/html/fixed_table_2.html')
-rw-r--r--tests/html/fixed_table_2.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/html/fixed_table_2.html b/tests/html/fixed_table_2.html
new file mode 100644
index 00000000000..0a5d28d6ad6
--- /dev/null
+++ b/tests/html/fixed_table_2.html
@@ -0,0 +1,36 @@
+<!-- This test creates one table, one caption, three rows, three header cells, and five data cells.
+ The table uses the fixed table layout algorithm and the table's width specified to 600px.
+ Each column's width will be assigned according to their ratio of column's widths
+ which are defined in col elements.
+ And table, caption, td, th elements have border. -->
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Fixed Table</title>
+ <style>
+ table {
+ table-layout: fixed;
+ width: 600px;
+ border: solid black 2px;
+ }
+ caption { border: solid blue 1px; }
+ td { border: solid red 1px; }
+ th { border: solid red 1px; }
+ </style>
+ </head>
+ <body>
+ <table>
+ <caption>This is a 3x3 fixed table</caption>
+ <colgroup>
+ <col style="width: 10px" />
+ <col style="width: 20px" />
+ <col style="width: 30px" />
+ </colgroup>
+ <tbody>
+ <tr><th style="width: 100px">Header 1</th><td style="width: 100px">Cell 1</td><td>Cell 2</td></tr>
+ <tr><th style="width: 300px">Header 2</th><td style="width: 300px">Cell 3</th><td>Cell 4</td></tr>
+ <tr><th>Header 3</th><td>Cell 5</th></tr>
+ </tbody>
+ </table>
+ </body>
+<html>