XX XX 
XX
XXXX
FAIL:
Expected 5 for offsetLeft, but got 0. 
Expected 18 for offsetLeft, but got 100. 
Expected 5 for offsetLeft, but got 277. 
Expected 50 for offsetLeft, but got 188. 

<div id="container">
    XX

    <span class="relpos">
        <span class="pad" data-offset-x="5">XX</span>
    </span>

    <span class="relpos">
        <span class="pad" style="display: inline-block;">
            <div data-offset-x="18">XX</div>
        </span>
    </span>

    <span class="relpos">
        <span data-offset-x="5" class="pad" style="position: absolute">XX</span>
    </span>

    <span class="relpos">
        <span data-offset-x="50" class="pad" style="position: absolute; left: 50px">XX</span>
    </span>
</div>
