summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/normal-flow/margin-collapsing-in-table-caption-002.html
blob: a7fefa47f0b3c0931e20601bdb86c9fb9513c499 (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
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="author" title="David Grogan" href="dgrogan@chromium.org">
<link rel="help" href="https://www.w3.org/TR/CSS22/tables.html#model">
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
<meta name="assert" content="margins between parent and child block collapse inside caption" />
<title>
Caption block containers are rendered same as normal block boxes
</title>

<style>
div {
  margin-top: 100px;
}
</style>

<p>Test passes if there is a filled green square.</p>

<table>
  <caption style="width:100px; background:green">
    <div>
      <div></div>
    </div>
  </caption>
</table>