An elastic, reusable SVG-only input-textfield prototype created with d3v4. It's still a little rough around the edges. Especially when inputting special characters.
See code comments for possible options.
xxxxxxxxxx
<head>
<meta charset="utf-8">
<base target="_blank">
<script src="https://d3js.org/d3.v4.min.js"></script>
</head>
<body>
<script src="textfield.js"></script>
<script src="svg.js"></script>
</body>
</html>
https://d3js.org/d3.v4.min.js