summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/tables/border-conflict-example-001.xht
blob: fff95eec76f8b144a7728b790f34cb56c7a0ee7f (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>CSS Test: Border conflict resolution - borders are collapsed according to precdence rules (example 1)</title>
        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
        <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution" />
        <meta name="flags" content="image" />
        <meta name="assert" content="Borders are collapsed according to the precedence rules (example from spec section 17.6.2.1)." />
        <style type="text/css">
            table
            {
                border-collapse: collapse;
                border: 5px solid yellow;
            }
            *#col1
            {
                border: 3px solid black;
            }
            td
            {
                border: 1px solid red;
                padding: 1em;
                width: 2em;
                height: 2em;
            }
            td.cell5
            {
                border: 5px dashed blue;
            }
            td.cell6
            {
                border: 5px solid lime;
            }
        </style>
    </head>
    <body>
        <table>
            <col id="col1" />
            <col id="col2" />
            <col id="col3" />
            <tr id="row1">
                <td> 1</td>
                <td> 2</td>
                <td> 3</td>
            </tr>
            <tr id="row2">
                <td> 4</td>
                <td class="cell5"> 5</td>
                <td class="cell6"> 6</td>
            </tr>
            <tr id="row3">
                <td> 7</td>
                <td> 8</td>
                <td> 9</td>
            </tr>
            <tr id="row4">
                <td> 10</td>
                <td> 11</td>
                <td> 12</td>
            </tr>
            <tr id="row5">
                <td> 13</td>
                <td> 14</td>
                <td> 15</td>
            </tr>
        </table>
        <p>Test passes if the table above has the same border colors and styles as the table below. (Note: colors in the bottom image might appear slightly faded.)</p>
        <div>
            <img alt="Illustration of proper border collapsing (from spec)" src="support/border_conflict_example_001.png" />
        </div>
    </body>
</html>