I made a kay answer option using the ::after
pseudo-element instead of the second range. in short:
.resizable-input { ... } .resizable-input > input { ... } .resizable-input::after { ... }
See the full code and see it in action here: https://jsfiddle.net/ElMoonLite/qh703tbe/
Also added input { padding-right: 0.5em; }
input { padding-right: 0.5em; }
input { padding-right: 0.5em; }
input { padding-right: 0.5em; }
so you can still resize it if its value is filled with text.
Looks like it still works in 2019 on Chrome.
In Edge, resizing doesn't seem to work (but otherwise it looks fine (gradual deterioration)). Other browsers have not tested yet.
Moonlite
source share