summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/floats/negative-margin-float-positioning.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/floats/negative-margin-float-positioning.html')
-rw-r--r--testing/web-platform/tests/css/CSS2/floats/negative-margin-float-positioning.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/floats/negative-margin-float-positioning.html b/testing/web-platform/tests/css/CSS2/floats/negative-margin-float-positioning.html
new file mode 100644
index 0000000000..8b4aef22f7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/floats/negative-margin-float-positioning.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<link rel="help" href="https://www.w3.org/TR/CSS22/visudet.html#float-width" title="10.3.5 Floating, non-replaced elements">
+<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
+<p>Test passes if there is a filled green square.</p>
+<div style="width: 100px;">
+ <div style="float: left; width: 50px; height: 100px; margin-left: 50px; margin-right: 50px;background: green;"></div>
+ <div style="float: left; width: 50px; height: 100px; margin-left: -150px; background: green;"></div>
+</div>
+