CSS3DRenderer: Cache styles. Fixes #4941.