3 ms·
> but I'm certain that it would take just a day or two to get a very simple barebones HTML renderer which supports <img> and a couple of formatting options. ht
by Dave3of5 5y ago
> but I'm certain that it would take just a day or two to get a very simple barebones HTML renderer which supports <img> and a couple of formatting options.
https://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect https://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
This tells me you've never actually tried this. For example the img tag allows you to, amongst other things, render an svg.
If you want a more full spec you can see here what it takes to render an img element:
https://html.spec.whatwg.org/multipage/images.html https://html.spec.whatwg.org/multipage/images.html
- smasher164 5y ago> For example the img tag allows you to, amongst other things, render an svg. I don't think the GP meant "write an image renderer" when they said "get a very simple barebones HTML renderer". Most languages have libraries for encoding/decoding images in various formats, so aside from how it would fit into document layout, this is a non-issue.
- emptyparadise 5y agoWhat I said right before the part you quoted was "Writing a modern browser may be an impossible feat" and the part you quoted talks about a "barebones HTML renderer". What I'm describing is labels and images in a VStack. This is something any operating system UI toolkit (open source ones too!) can do.