summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/floats/floats-placement-005-ref.html
blob: a286a4aeb75d6e73b96439fb19c62c6f38d8110a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<style>
.float-left {
  float: left;
  clear: left;
  width: 50px;
  height: 50px;
  background: green;
}
.float-right {
  float: right;
  clear: right;
  width: 50px;
  height: 50px;
  background: green;
}
</style>
<div style="width: 150px; display: flow-root;">
  <div class="float-left"></div>
  <div style="height: 40px;"></div>
  <div class="float-right"></div>
  <div class="float-left" style="width: 100px; height: 40px; background: cyan;"></div>
  <div class="float-right"></div>
  <div class="float-left"></div>
  <div class="float-right"></div>
</div>