Jarek has already written a basic rendering engine afaik for his own html browser