Add an absolute positioned div (100% height / width) containing a font with size em, fill it with "X"
<div class="deceased">X</div>
Will expand correctly (and save the image callback :) :)
If you don't like the X being cropped by setting its size to very large, you will need javascript to resize it when the div is resized.
Even better, you can add it with the :after pseudo-class and save both the extra div and the "X"
.deceased:after { content:"X"; position:absolute; left:0px; top:0px; width:100%; height:100%; font-size: 1000px;
Or :before .. will place existing content "under"
.deceased:before { content:"X"; position:absolute; left:0px; top:0px; width:100%; height:100%; font-size: 1000px;
UPDATE
I found a way to use only CSS ...
@media all and (min-width: 50px) { .deceased:before { font-size:0.1em; } } @media all and (min-width: 100px) { .deceased:before { font-size:0.2em; } } @media all and (min-width: 200px) { .deceased:before { font-size:0.4em; } } @media all and (min-width: 300px) { .deceased:before { font-size:0.6em; } } @media all and (min-width: 400px) { .deceased:before { font-size:0.8em; } } and so on ....
UPDATE 2
And the built-in svg containing the text scales the text to the size of the div ...
.deceased:before { content: url('data:image/svg+xml;utf8,<svg>....</svg>'); position:absolute; left:0px; top:0px; width:100%; height:100%; overflow: hidden; }
LGSon
source share