summaryrefslogtreecommitdiffstats
path: root/layout/reftests/columns/columns-table-caption-000.html
blob: e41ccad7f115ab9d5e842d18639a4403f050f3b1 (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
<!DOCTYPE HTML>
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
    <meta charset="utf-8">
    <title>Testcase for table caption column layout</title>
    <link rel="help" href="http://www.w3.org/TR/css3-multicol/">
    <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1109571">
    <link rel="match" href="columns-table-caption-000-ref.html">
    <style type="text/css">

* {
    color:black; background:none; font-size:16px; padding:0; margin:0; font-family:monospace;
}

caption {
  -webkit-column-count:2;
  -o-column-count:2;
  -ms-column-count:2;
  column-count:2;

  -webkit-column-rule:2px solid blue;
  -o-column-rule:2px solid blue;
  -ms-column-rule:2px solid blue;
  column-rule:2px solid blue;

  -webkit-column-gap:10px;
  -o-column-gap:10px;
  -ms-column-gap:10px;
  column-gap:10px;

  height:2.2em;
  line-height:1em;
  border:2px dotted;
}
.col1 {
  -webkit-column-count:1;
  -o-column-count:1;
  -ms-column-count:1;
  column-count:1;
}
.cw1 {
  -webkit-column-width:1px;
  -o-column-width:1px;
  -ms-column-width:1px;
  column-width:1px;
}
table {border:1px solid black}
.wrap { float:left; clear:both; outline:1px dashed lime; margin-top:3px; }
    </style>
</head>
<body>

<div class="wrap"><table cellpadding="0" cellspacing="0"><caption>1<br>2<br>3</caption><tr><td>a table with a two column caption</td></table></div>

<div class="wrap"><table cellpadding="0" cellspacing="0"><caption style="height:1.1em">1<br>2<br>3</caption><tr><td>a table with a two column caption</td></table></div>

<div class="wrap"><table cellpadding="0" cellspacing="0"><caption style="border:inherit; border-color:blue">1111<br>2<br>3</caption><tr><td>a table with a two column caption</td></table></div>

<div class="wrap"><table cellpadding="0" cellspacing="0"><caption>1111<br>2<br>3<br>4</caption><tr><td>T</td></table></div>

<div class="wrap"><table cellpadding="0" cellspacing="0"><caption class="col1">1111<br>2<br>3<br>4</caption><tr><td>T</td></table></div>

<div class="wrap"><table cellpadding="0" cellspacing="0"><caption class="col1">1111<br>2<br>3<br>4</caption><tr><td>a table with a two column caption</td></table></div>

<div class="wrap"><table cellpadding="0" cellspacing="0"><caption class="col1 cw1">1111<br>2<br>3<br>4</caption><tr><td>a table with a two column caption</td></table></div>

</body>
</html>