JSFiddle - React, Tailwind, and code Playground

by Addy Osmani

HTML

<div id="test">TEST</div>

CSS

#test {
    
    position:absolute;
    background-color:blue;
    left:10.7432222px;
    top:10.532325px;
    width:100px;
    height:100px;
}

JavaScript

var expected = {left:100,top:100};
            $('#test').offset(expected);
            var actual = $('#test').offset();
            alert(expected.left == actual.left && expected.top == actual.top ? 'bug has been fixed' : 'bug still remains, expected [' + expected.left + '; ' + expected.top +
                '], actual [' + actual.left + '; ' + actual.top + ']');