aboutsummaryrefslogtreecommitdiffstats
path: root/tests/html/anonymous_table.html
blob: 90363d43d284e52599ff5b6ff65298197be8dbd2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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>