summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/floats-clear/adjoining-float-nested-forced-clearance-004.html
blob: bda89a9f6fed366fe942e10f106b4264928ff268 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html>
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html" />
<link rel="help" href="https://www.w3.org/TR/CSS22/visuren.html#flow-control" title="9.5.2 Controlling flow next to floats: the 'clear' property">
<p>Test passes if there is a filled green square.</p>
<div style="overflow: hidden;"></div>
<div style="float: left; width: 100px; height: 50px; background: green;"></div>
<span>
  <div style="clear: both;">
    <div style="height: 10px;">
      <div style="float: left; width: 100px; height: 50px; background: green;">
    </div>
  </div>
</span>