Rendered style is now cached after the first calculation.
Added a test to make sure style gets cached after the first render.