JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test">&nbsp;</div>

CSS

#test {
    width: 100px;
    height: 20px;
    background: black;
    
    -webkit-transform: rotate(5deg);
}

JavaScript

var test = document.getElementById('test');
console.log(test.getBoundingClientRect().height);
console.log(getComputedStyle(test).height);