All of the boxes below should behave the same. You can only drag the smaller, inner box around and not escape the larger box. For the examples that include margins (the right column), the box should approach the black border of the container box, but not touch it.

container: not relative
box: absolute
includeMargins: false
container: not relative
box: absolute
includeMargins: true
container: relative
box: absolute
includeMargins: false
container: relative
box: absolute
includeMargins: true
container: not relative
box: relative
includeMargins: false
container: not relative
box: relative
includeMargins: true
container: relative
box: relative
includeMargins: false
container: relative
box: relative
includeMargins: true