summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/normal-flow/margin-collapsing-in-table-caption-002.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/normal-flow/margin-collapsing-in-table-caption-002.html')
-rw-r--r--testing/web-platform/tests/css/CSS2/normal-flow/margin-collapsing-in-table-caption-002.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/normal-flow/margin-collapsing-in-table-caption-002.html b/testing/web-platform/tests/css/CSS2/normal-flow/margin-collapsing-in-table-caption-002.html
new file mode 100644
index 0000000000..a7fefa47f0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/normal-flow/margin-collapsing-in-table-caption-002.html
@@ -0,0 +1,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>