CSS2 Specification satisfaction (in some degree)

I encountered a problem with display: block and position: absolute and figured out that libRocket doesn't handle it at all (HTML + CSS code in browser shows one result and analogous code in RML + RCSS shows completely different one). So I tried to fix it (reading CSS2 Specification section 10.3.7). Hope these patches will be useful.