summaryrefslogtreecommitdiffstats
path: root/layout/reftests/margin-collapsing/block-clear-2-noref.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/margin-collapsing/block-clear-2-noref.html')
-rw-r--r--layout/reftests/margin-collapsing/block-clear-2-noref.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/layout/reftests/margin-collapsing/block-clear-2-noref.html b/layout/reftests/margin-collapsing/block-clear-2-noref.html
new file mode 100644
index 0000000000..ada1f22ffe
--- /dev/null
+++ b/layout/reftests/margin-collapsing/block-clear-2-noref.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<!-- Without floats, no clearance applies, thus margin-top of #clear
+ should collapse with margin-bottom of its parent element. -->
+<style type="text/css">
+.separator {
+ height: 20px;
+ margin-bottom: 30px;
+ background-color: green;
+}
+</style>
+</head>
+<body>
+<div class="separator"></div>
+<div class="separator"></div>
+</body>
+</html>