<div style="outline: thin dashed lightblue;">
I <span id="could-not">couldn’t</span> tell if she tru­ly ad­vo­cat­ed anti­dis­est­ab­lish­ment­arian­ism.
</div>
<script>
var couldNot = document.getElementById("could-not");
var width = couldNot.getBoundingClientRect().width;
couldNot.parentElement.style.width = Math.ceil(width);
</script>