JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html style="font-size:0.75px">
<head><head>
<body>
<div style="width:400rem; height:400rem; background:blue;"></div>
</body>
</html>
JavaScript
var width=document.querySelector('div').getBoundingClientRect().width;
if(width<299.9 || width>300.1) alert('double fail='+width+';');
else alert('OK');