css3 rendering refactor