I'm trying to remove the whitespace around some text that I've scaled down from 100% to 0.25% using transform: scale(0.25);. I've come across this answer - White space around css3 scale - but it implies that I need a container with px values which I'm trying to avoid as the text can span multiple lines. Does anyone know of any other solutions out there?
JSfiddle - https://jsfiddle.net/pw9j9wb4/
<h1 class="scaled">This is a heading that can span many many many many many many many many many many many many many many many many many many many many lines</h1>
<h1>This is a heading that can span many many many many many many many many many many many many many many many many many many many many lines</h1>
.scaled {
transform: scale(0.25);
transform-origin: top left;
}