2 ms·
If you’re making a site using canvas to render UI elements you are taking it upon yourself to implement a lot of standard functionality yourself, similarly even
by olliej 4y ago
If you’re making a site using canvas to render UI elements you are taking it upon yourself to implement a lot of standard functionality yourself, similarly even basic text entry, let alone editing, is much more complex than people seem willing to accept.
At google’s size/cash implementing these things might be achievable, but I recall many people/projects over the years that decided to do in canvas rather than using the available engine (often times a belief that their desire for pixel perfect positions was reasonable, and more than made up for needing to draw everything and manage text entry themselves) always looks easy at first glance, typically because the authors don’t use accessibility tools and most who I interacted with were English-first devs who believe one keypress event == one letter. So you end up with yet another English-only (and I really do mean English specifically here, not Western European) and inaccessible rendering engine for a web page, that typically could have achieved 95-100% of what they wanted, with a bunch of the remainder being stuff that doesn’t work for people with accessibility issues.