summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/floats/negative-margin-float-positioning.html
blob: 8b4aef22f71f8695ebbc5b6dc83ad5639945618d (plain)
1
2
3
4
5
6
7
8
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>