Assume that the current box is to be floated left (similar rules for float:right):
- The left edge may not be to the left of the
left edge of its containing block
- If previous boxes are left-floating, the left edge must be to the right of earlier boxes,
or its top must be lower than the bottom of the earlier boxes
- The right edge may not be to the right of the left edge of any right-floating box
that is to its right
- Its top may not be higher than the top of its containing block
- The top may not be higher than the top of any block generated by an element earlier in the
document
- If there is a block to its left, its right edge cannot stick out to the right of its containing block's right edge
- It must be placed as high as possible
- It must be put as far to the left as possible
- If a decision has to be made with regard to leftness and height, the higher position is preferred