Hacker News new | ask | show | jobs
by nicoburns 1 hour ago
Running layout in WASM is already practical. A good demo is https://www.nicbarker.com/clay

The things you can't do are things like expose an accessibility tree (without a dummy DOM), interact with the system IME, and access system fonts.

1 comments

I feel like it's fair to say that you have not "fixed the issues with browser layout" if you lose accessibility and input. System fonts I can live without, we can push our own, but those two things are a big deal.

Even input you might be able to hack around but accessibility is a big deal and the "hack" at that point is nearly to both lay it out in the browser and the supposed "fixed" layout system, and while that may work in some sense I again have lots of questions about whether that is really "fixed".

I mean, I agree it's not fixed. I guess I'm just saying it's not the layout engine that's the blocker.

FWIW, I actually think it would be much more valuable just to fix the spec and make CSS layout fast-by-default.