Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Posts like this always make me want to play with a layout engine trying to implement various features. Is there a toy layout engine made specifically for (self-) education? I couldn't find one. If there isn't, what is otherwise the easiest one to get started with?


Or contribute to Servo! Despite the huge milestone represented by Acid 2, it's still pretty early days and there is plenty of work to go around. The code's on GitHub [1], Josh Matthews did a nice talk about Fosdem that should give you a start on the architecture and how to contribute (video [2], slides [3]), and there is an irc channel (#servo on irc.mozilla.org) where you can ask questions.

[1] https://github.com/mozilla/servo/ [2] http://ftp.osuosl.org/pub/fosdem//2014/UD2218A/Saturday/Serv... [3] http://www.joshmatthews.net/fosdemservo/


Servo is also pretty easy to navigate, IMO. I'm biased, of course :) But we do care a lot about code cleanliness.


WeasyPrint is a layout engine written in Python. It is not written for education nor it is a toy, but I found it easier to understand compared to other engines.

One of Servo authors worked on WeasyPrint.

WeasyPrint passes Acid2.

http://weasyprint.org/


How about writing your own?

If you want an existing one, in a simpler browser, try Dillo or NetSurf.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: