aboutsummaryrefslogtreecommitdiffstats
path: root/tests/html/anonymous_table.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/anonymous_table.html
parentdb2f642c32fc5bed445bb6f2e45b0f6f0b4342cf (diff)
downloadservo-c6ab60dbfc6da7b4f800c9e40893c8b58413960c.tar.gz
servo-c6ab60dbfc6da7b4f800c9e40893c8b58413960c.zip
Cargoify servo
Diffstat (limited to 'tests/html/anonymous_table.html')
-rw-r--r--tests/html/anonymous_table.html46
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/html/anonymous_table.html b/tests/html/anonymous_table.html
new file mode 100644
index 00000000000..90363d43d28
--- /dev/null
+++ b/tests/html/anonymous_table.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Fixed Table</title>
+ <style>
+ .table {
+ display: table;
+ table-layout: fixed;
+ width: 600px;
+ border: solid black 2px;
+ }
+ .colgroup {
+ display: table-column-group;
+ }
+ .column {
+ display: table-column;
+ }
+ .row {
+ display: table-row;
+ }
+ .cell {
+ display: table-cell;
+ border: solid red 1px;
+ }
+ </style>
+ </head>
+ <body>
+ <p> This test checks Anonymous table objects(CSS 2.1, Section 17.2.1) </p>
+ <p> 1. Remove irrelevant boxes</p>
+ <p> 2. Generate missing child wrappers: `table-row`, `table-cell` </p>
+ <div class="table">
+ <span class="column"> inline child box of table-column. NOT Shown </span>
+ <span class="colgroup">
+ <span>inline child box of table-column-group</span> NOT Shown
+ </span>
+ <span class="cell">Cell1</span>
+ <span class="cell">Cell2</span>
+ <span class="row">
+ 2nd Row
+ <span>Cell4</span>
+ <span class="cell">Cell3</span>
+ Cell5
+ </span>
+ </div>
+ </body>
+<html>