Amazingly, there’s no easy, cross-browser way to calculate how border, padding, and margin affects the position of an element. And that’s what we need to do in order for line drawing to track our mouse cursor accurately. We set out to solve the problem, not realizing what kind of journey we’re getting ourselves into.