2 ms·
Somehow I thought that Servo was already incorporated into Firefox. Is there a way to render some HTML in Rust into an image, without loading a whole browser?
by ilaksh 3y ago
Somehow I thought that Servo was already incorporated into Firefox.
Is there a way to render some HTML in Rust into an image, without loading a whole browser? It doesn't have to support a lot of HTML or CSS.
- nicoburns 3y agoThe closest thing currently is probably https://github.com/trimental/inlyne https://github.com/trimental/inlyne which differs in two ways: it only support markdown not arbitrary HTML, and it renders to screen rather to an image. But it's a good start. IMO the main blocker for web rendering in Rust right now is better text layout, and in particular support for embedding non-text content within text ala `display: inline-block`. If/when that is implemented I think we'll be able to do a decent job of rendering basic web pages.
- jszymborski 3y agoThe CSS style system (stylo) started out in Servo and is now in Firefox but as I understand it they've diverged quite a bit. https://blog.nightly.mozilla.org/2017/07/25/stylo-is-ready-for-community-testing-on-nightly/ https://blog.nightly.mozilla.org/2017/07/25/stylo-is-ready-f...
- fulafel 3y agoWebRender and Stylo come from Servo and have been integrated as Quantum Render and Quantum CSS. An maybe some other things as well?
- abhinavk 3y agoNot the entire engine but WebRender (GPU-based compositor) and Stylo (CSS engine) are in Firefox for a few years now.