JSFiddle - React, Tailwind, and code Playground

HTML

<div class="first-line">This is going to do something to the first line of whatever is in this div. But I'm going to try to find the position of <span>this span</span> and see if it works in IE9.</div>

CSS

div{
    width:400px;
    margin: 40px;
}
.first-line:first-line{
    background-color: red;
    color:#fff;
}
span{font-weight:bold}

JavaScript

alert("Top of 'this span' is: " + $("span")[0].getBoundingClientRect().top);