Element#cumulativeOffset / getDimensions

Adding a red box to bottom right corners using cumulativeOffset and getDimensions.

Using Prototype git (pre 1.6.0.3)

a span

position:relative span