Live data from Hacker News

Show HN: Dropflow, a CSS layout engine for node or

github.com

141–146 of 146 posts

Re: Show HN: Dropflow, a CSS layout engine for node or <canvas>

#141
post #47

Perhaps I'm missing something, but why can't we render HTML directly onto the canvas in the browser? The parser is there, the layout engine is already implemented, and the calculation of box layout is already done. It should be doable without going in circles. If only the browser had a flag indicating which "surface" to render on. I was looking at Glide Grid the other day, and it renders so fast, even with 1 million…

You can use DOM-to-image (https://github.com/tsayen/dom-to-image).

Re: Show HN: Dropflow, a CSS layout engine for node or <canvas>

#143

There is also HTML/CSS layout engine litehtml ( https://github.com/litehtml/litehtml ) and even a full-blown web engine in JS: WebKit.js ( https://github.com/trevorlinton/webkit.js )

> webkit.js What in the world?

Emscripten sausage. Or a kind of a web turducken.

Re: Show HN: Dropflow, a CSS layout engine for node or <canvas>

#144

Earlier quoted context omitted.

The purpose is for documents that don't use flexbox.

Alright so that’s about as useful as saying “I built a word processor without left, right, middle align or tables”.

Maybe? I mean those exist. Not sure what you're getting at. If you don't like it don't use it.

Re: Show HN: Dropflow, a CSS layout engine for node or <canvas>

#145

Earlier quoted context omitted.

> webkit.js What in the world?

Emscripten sausage. Or a kind of a web turducken.

Yeah, I'm just impressed someone did it. Emscripten doesn't come free, you have to do a bit of work yourself.

Re: Show HN: Dropflow, a CSS layout engine for node or <canvas>

#146

This is an amazing piece of work. Thanks for making this open-source. The default way of generating beautiful PDFs in the backend these days is, running a headless browser and using browser APIs to turn HTML/CSS into PDFs. And apparently, it's a bit costly running instances of browser in the server and scale it properly for huge workloads. This is literally a game changer. Now it's possible to design PDFs using HTML/…

I've been building PDF renderers for a few clients. The biggest request in PDFs has been accessibility. Everyone needs to be ADA compliant. I sadly don't see myself switching to a canvas renderer because then there is no accessibility.
Post reply on HN