fixed an infinite loop + 2.1.12
new style footer color settings
better processing of page-break-* CSS properties (still not fully used during rendering)
code cleanup