1637067-1-ref.html (580B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <style> 5 6 .text { 7 position: absolute; 8 top: 100px; 9 left: 45px; 10 height: 400px; 11 width: 400px; 12 } 13 14 .thing { 15 position: absolute; 16 top: 0; 17 left: 0; 18 width: 512px; 19 height: 512px; 20 background: url('data:image/svg+xml;utf8,<svg width="512" height="200" viewBox="0 0 512 512" fill="black" xmlns="http://www.w3.org/2000/svg"><text x="0" y="400" font-size="100">some text</text></svg>'); 21 background-repeat: no-repeat; 22 background-size: 100% 100%; 23 } 24 25 </style> 26 </head> 27 <body> 28 <div class='text'> 29 <div class="thing"></div> 30 </div> 31 </body> 32 </html>