3 ms·
> No, you don't, and even if that was the case you can just throw a <canvas> tag on a page and render whatever custom UI you want to that Ah, yes. Canvas. Tell
by dmitriid 4y ago
> No, you don't, and even if that was the case you can just throw a <canvas> tag on a page and render whatever custom UI you want to that
Ah, yes. Canvas. Tell me, what is the API for canvas exposed to WASM (hint: there isn't one, you go through the Javascript API)
> This scraps decades of work in HTML, JS, CSS, engines like V8 and SpiderMonkey, etc.
And instead it forces you to do the same decades of wrok because you have to re-invent the whole rendering part from scratch (including the funny little case of accessibility). Canvas couldn't even render text properly until relatively recently.
> You may as well just toss the browser out the window and consider it a "program" you are running from the internet.
Well, of course you can't. Because there are literally no APIs exposed to WASM except a Javascript bridge.