about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/layout/float-after-collapsing-margin-resolved-by-parent.expected4
-rw-r--r--test/layout/float-after-collapsing-margin-resolved-by-parent.html10
-rw-r--r--test/layout/float-between-collapsing-margins.expected4
-rw-r--r--test/layout/float-between-collapsing-margins.html7
4 files changed, 25 insertions, 0 deletions
diff --git a/test/layout/float-after-collapsing-margin-resolved-by-parent.expected b/test/layout/float-after-collapsing-margin-resolved-by-parent.expected
new file mode 100644
index 00000000..34689c5f
--- /dev/null
+++ b/test/layout/float-after-collapsing-margin-resolved-by-parent.expected
@@ -0,0 +1,4 @@
+test
+
+                                             float
+test
diff --git a/test/layout/float-after-collapsing-margin-resolved-by-parent.html b/test/layout/float-after-collapsing-margin-resolved-by-parent.html
new file mode 100644
index 00000000..20fca89a
--- /dev/null
+++ b/test/layout/float-after-collapsing-margin-resolved-by-parent.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<div style="width: 50ch">
+<div style="margin-bottom: 1em">test</div>
+<div id=empty style="margin-top: 1em">
+<div style="float: right">float</div>
+</div>
+<div id=full style="margin-top: 2em">
+test
+</div>
+</div>
diff --git a/test/layout/float-between-collapsing-margins.expected b/test/layout/float-between-collapsing-margins.expected
new file mode 100644
index 00000000..418bd67c
--- /dev/null
+++ b/test/layout/float-between-collapsing-margins.expected
@@ -0,0 +1,4 @@
+one
+
+
+two     float clears
diff --git a/test/layout/float-between-collapsing-margins.html b/test/layout/float-between-collapsing-margins.html
new file mode 100644
index 00000000..7207b185
--- /dev/null
+++ b/test/layout/float-between-collapsing-margins.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<div style="width: 20ch">
+<div>one</div>
+<div style="margin-top: 1em">
+<div style="float: right; clear: both">float clears</div>
+<div style="margin-top: 2em">
+two