<!DOCTYPE html> <!-- webkit-test-runner [ LayoutFormattingContextEnabled=true InlineFormattingContextIntegrationEnabled=false ] -->
<html>
<head>
<style>
div { outline: 1px solid green; }
</style>
</head>
<body>
<div style="width: 500px; height: 50px;">
  <div style="float: left; width: 20px; height: 20px; margin-left: 10px;"></div>
  <div style="float: left; width: 20px; height: 20px; margin-right: 10px;"></div>
  <div style="float: left; width: 20px; height: 20px; margin-left: 10px;"></div>
  <div style="float: left; width: 20px; height: 20px; margin-right: 10px;"></div>
  <div style="float: left; width: 20px; height: 20px; margin: 10px;"></div>
  <div style="float: left; width: 20px; height: 20px; margin: 10px;"></div>
</div>
<div style="width: 500px; height: 50px;">
  <div style="float: right; width: 20px; height: 20px; margin-left: 10px;"></div>
  <div style="float: right; width: 20px; height: 20px; margin-right: 10px;"></div>
  <div style="float: right; width: 20px; height: 20px; margin-left: 10px;"></div>
  <div style="float: right; width: 20px; height: 20px; margin-right: 10px;"></div>
  <div style="float: right; width: 20px; height: 20px; margin: 10px;"></div>
  <div style="float: right; width: 20px; height: 20px; margin: 10px;"></div>
</div>
<div style="width: 500px; height: 50px;">
  <div style="float: right; width: 20px; height: 20px; margin-left: 10px;"></div>
  <div style="float: right; width: 20px; height: 20px; margin-right: 10px;"></div>
  <div style="float: left; width: 20px; height: 20px; margin-left: 10px;"></div>
  <div style="float: left; width: 20px; height: 20px; margin-right: 10px;"></div>
</div>
<div style="width: 500px; height: 50px;">
  <div style="float: left; width: 20px; height: 20px; margin-left: 400px;"></div>
  <div style="float: left; width: 20px; height: 20px; margin-right: 80px;"></div>
</div>
<div style="width: 500px; height: 50px;">
  <div style="float: right; width: 20px; height: 20px; margin-left: 400px;"></div>
  <div style="float: right; width: 20px; height: 20px; margin-right: 80px;"></div>
</div>
<div style="width: 500px; height: 50px;">
  <div style="float: left; width: 20px; height: 20px; margin-left: 400px;"></div>
  <div style="float: right; width: 20px; height: 20px; margin-right: 80px;"></div>
</div>
<div style="width: 500px; height: 120px;">
  <div style="float: left; width: 480px; height: 20px; margin: 10px;"></div>
  <div style="float: right; width: 20px; height: 20px; margin-top: 50px;"></div>
</div>
<div style="width: 500px; height: 50px;">
  <div style="float: left; width: 20px; height: 20px; margin: 10px;"></div>
  <div style="float: right; width: 20px; height: 20px; margin: 10px;"></div>
</div>
<div style="width: 500px; height: 80px;">
  <div style="float: left; width: 20px; height: 20px; margin: 50px;"></div>
  <div style="float: right; width: 20px; height: 20px;"></div>
</div>
<div style="width: 500px; height: 60px;">
  <div style="float: right; width: 20px; height: 20px; margin-top: 50px;"></div>
</div>
<div style="width: 500px; height: 50px;">
  <div style="float: right; width: 20px; height: 20px; margin: 10px;"></div>
</div>
</body>
</html>
