When using a range object to getBoundingClientRect in IE11 it reports wrong numbers. It reports the height as 128 while the actual height is 74. It reports the top offset as 8 while the actual top offset is 35.
Is this a known bug? Is there a way to get accurate numbers for a selection in windows ie11.
var div = document.querySelectorAll('div')[0];
var t = div.childNodes[0];
var range = document.createRange();
range.setStart(t, 0)
range.setEnd(t, 1)
console.log(range.getBoundingClientRect())
div.text {
font-size: 64px;
line-height: 1em;
}
<div class="text">T</div>
Here is a screenshot for reference: